Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
If a letter is enterd into the text box, it sends a msg box to say must be
numeric and then should set focus and highlight last enterd text to change it. If I remove the msgbox it selects the text box and highlites if the msg box line is left in it does not select the textbox and does not hightlite what am i doint wrong thanks in advance: Private Sub txtphone_Change() If Not IsNumeric(txtphone) Then MsgBox "Must be Numeric" txtphone.SetFocus txtphone.SelStart = 0 txtphone.SelLength = 1000 Exit Sub End If End Sub |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
website prevents excel import web query | Excel Discussion (Misc queries) | |||
Simplifying a formula that prevents negative numbers | Excel Discussion (Misc queries) | |||
Excel prevents XP Pro laptop going on standby | Excel Discussion (Misc queries) | |||
what exactly prevents INDIRECT from accessing closed worksheets? | Excel Worksheet Functions | |||
Restricting Scroll Prevents Row and Column Choice | Excel Discussion (Misc queries) |