C
Chuckles123
In the absence of any responses, I am proceeding with my attempt.
I have about a 40-word message that the user needs to see whe
inputting the 2- or 3-digit number; this message is definitely too bi
for an InputBox.
Hence, the idea of an UserForm. I have finished with the design of m
Form and it looks great; unfortunately, it doesn't work -- HELP!
In my Form, I have a Label button for my long message and a text bo
for user input of the 2- or 3-digit number.
When I step-thru the macro and the Form opens -- there is a blinkin
vertical cursor adjacent to the right edge of the Value Property (in m
case, "100", which is a string); keying the Enter key has zero impact
if I key any single digit, it is appended to the right edge of 100 an
the macro proceeds to inspect the code for the text box; keyin
'backspace' removes the rightmost digit from 100 and the macro proceed
with inspecting the code for the text box.
I have changed my error testing from "2 or 3 digits?" to calculatin
MIN and MAX values in the main macro (these are variables) and the
testing the user input level, after using "Val" to convert to a number
against this range. I pasted the error testing into the code for th
text box; however, I am not able to get the Form to reappear. Eve
when setting the Value Property at "999" and deleting the right-mos
"9", I can get a MsgBox to display the number, but I am not bringin
that value back to the main macro.
As I said before, HELP.
Chuckles12
I have about a 40-word message that the user needs to see whe
inputting the 2- or 3-digit number; this message is definitely too bi
for an InputBox.
Hence, the idea of an UserForm. I have finished with the design of m
Form and it looks great; unfortunately, it doesn't work -- HELP!
In my Form, I have a Label button for my long message and a text bo
for user input of the 2- or 3-digit number.
When I step-thru the macro and the Form opens -- there is a blinkin
vertical cursor adjacent to the right edge of the Value Property (in m
case, "100", which is a string); keying the Enter key has zero impact
if I key any single digit, it is appended to the right edge of 100 an
the macro proceeds to inspect the code for the text box; keyin
'backspace' removes the rightmost digit from 100 and the macro proceed
with inspecting the code for the text box.
I have changed my error testing from "2 or 3 digits?" to calculatin
MIN and MAX values in the main macro (these are variables) and the
testing the user input level, after using "Val" to convert to a number
against this range. I pasted the error testing into the code for th
text box; however, I am not able to get the Form to reappear. Eve
when setting the Value Property at "999" and deleting the right-mos
"9", I can get a MsgBox to display the number, but I am not bringin
that value back to the main macro.
As I said before, HELP.
Chuckles12