sassriverrat
Well-known Member
- Joined
- Oct 4, 2018
- Messages
- 655
I have a section of code below from a much larger piece. The section of code worked when using an input box to acquire a userinput. However, I'd like to have userform replace the inputbox. I've tried just using a userform and inserting the line (as seen below) but that didn't work. I need the rest of the code below to call to the userform, allow the user to input data into textbox1, and then return to the lines of code being run.
thanks for the help
thanks for the help
Code:
dim s as string
If s = "" then
'this works
s = inputbox("Please input here",vbokonly)
'I wish this worked instead
call userform17
s = userform17.textbox1.value
unload userform17
'rest of this section of working code
If s <> "" then
blah blah blah