Is there an "Inputbox" type function that accepts integers. I want the user to input a number and use it in VBA code.
Is there an "Inputbox" type function that accepts integers. I want the user to input a number and use it in VBA code.
You can use the InputBox for numbers. What is the code you want to use it in? You can use something like:
Code:Dim intX As Integer intX = Val(InputBox("Enter Number"))
Last edited by boblarson; 10-31-2011 at 02:26 PM. Reason: changed from NZ to Val
Hi Bob, Thank you. That works, and is simple to impliment.