Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I have a multipage userform. on one of the pages there are 10 text boxes that may only contain numbers( or a percentage) I now use the following code: Private Sub nw_premieNP_change() OnlyNumbers End Sub and then the following sub: Private Sub OnlyNumbers() With nw_premieNP.ActiveControl If Not IsNumeric(.Value) And .Value < vbNullString Then MsgBox "Sorry, alleen getallen toegestaan" .Value = vbNullString End If End With End Sub This works perfectly but i have to do this for each textbox. so i get 20 subs ! Is there a better way to do this for all the textboxes in the userform page? Thanks, Jean-Pierre -- Message posted via http://www.officekb.com |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
UserForm TextBoxes | Excel Discussion (Misc queries) | |||
Userform Textboxes and Looping | Excel Programming | |||
userform & textboxes | Excel Programming | |||
userform textboxes again | Excel Programming | |||
userform textboxes | Excel Programming |