Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() Hi. I want to validate the data entry on a textbox so that a message box appears if the user inputs a reference less than 7 digits long. (part of a form which adds a new record to the sheet) I've set the textbox to maxlength of 7 but can't get the code right. Please could someone assist. Here is what I have so far which doesn't work: If not TextBox1.MaxLength Then MsgBox "The entry has to be 7 digits long" TextBox1.SetFocus Exit Sub End If Thank you. -- Blondegirl ------------------------------------------------------------------------ Blondegirl's Profile: http://www.excelforum.com/member.php...o&userid=29615 View this thread: http://www.excelforum.com/showthread...hreadid=540634 |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
validating input of textbox before publishing | Excel Programming | |||
exact number of characters in textbox | Excel Programming | |||
validating input in textbox | Excel Programming | |||
Excel VBA - Cursor disappears when validating content of a TextBox | Excel Programming | |||
Validating Entry into Textbox | Excel Programming |