Logo 
Search:

MS Office Answers

Ask Question   UnAnswered
Home » Forum » MS Office       RSS Feeds
  Question Asked By: Karina K patni   on Dec 20 In MS Office Category.

  
Question Answered By: Aabirah Khan   on Dec 20

You can also use the "isnumeric" function in the following way:
If IsNumeric(TextBox1.Text) Then
MsgBox "OK"
Else
MsgBox "no good"
End If

You can limit entry to maximum one digit by changing the "maxlength" property
of your textbox to 1. You can access the properties menu in the VBEditor. If it
is not already displayed press the F4 key. Be sure that you change the property
of your textbox1 control.

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on text box -- integers only Or get search suggestion and latest updates.


Tagged: