B
BerylM
Hi folks, I just found your group and like the look of it! Can I ask a
question to get started?
I have a userform with two textboxes and an OK button, and the content
of one of the textboxes needs to always be numerical - is there a way
to restrict the content so that it will only accept numbers? I'm
fairly certain there's no property to do it (although happy to be
proved wrong if there is!) but I was thinking maybe something like
this:
Private Sub txtNo_Change()
If .value <> [numerical] then msgbox "Numbers only, please! Try
again", vbinformation
End Sub
Needless to say I don't know what to put where I've got [numerical]
above! Any assistance would be much appreciated!
Many thanks
BerylM
question to get started?
I have a userform with two textboxes and an OK button, and the content
of one of the textboxes needs to always be numerical - is there a way
to restrict the content so that it will only accept numbers? I'm
fairly certain there's no property to do it (although happy to be
proved wrong if there is!) but I was thinking maybe something like
this:
Private Sub txtNo_Change()
If .value <> [numerical] then msgbox "Numbers only, please! Try
again", vbinformation
End Sub
Needless to say I don't know what to put where I've got [numerical]
above! Any assistance would be much appreciated!
Many thanks
BerylM