Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Textbox edit
I have a text box in a form I would like the user to enter numbers only in.
On this forum, some code was posted: Private Sub TextBox1_Key Press If KeyAscii <48 or Key Ascii 57 Then KeyAscii=0 End If This works great EXCEPT it will not allow input of a negative number, which I need. How can I modify this code to allow a negative number to be input? Thanks! -- Paul |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
HELP! I Lost The Ability To Advance From TextBox To TextBox With the ENTER Or The TAB Keys | Excel Programming | |||
Textbox Bug? Missing/delayed update of textbox filled via VBA | Excel Programming | |||
Textbox Bug? Missing/delayed update of textbox filled via VBA | Excel Programming | |||
Edit Excel TextBox using C# | Excel Programming | |||
Edit Textbox using KeyPress vba code in Access | Excel Programming |