Situation:
You want to get a user input and you want to know if the entered data is a number or not
Solution:
Make a subroutine with “GetInput” name (you can use any name you desire) and inside it use the InputBox function of the Excel VBA programming language. A variable (vInput) should get the entered value and use the function IsNumeric to check if the value is a number or not. The input box looks like this:
Click here to subscribe and receive Pro-business Excel VBA Programming tips. |
0 comments:
Post a Comment