I have this little bit of code that will ask the user which quarter, based on their input a particular marco is called. Further down the script I would like to again call the same particular macro based on their previous input without having to prompt them a second time for the same information.
BTW I'm not sure if it matters or not, but the prompt is a macro in itself that is called from my main script.
Basically, how do I go about storing their answer to be used later on?
Thank you for for the help.
BTW I'm not sure if it matters or not, but the prompt is a macro in itself that is called from my main script.
Basically, how do I go about storing their answer to be used later on?
Thank you for for the help.
VBA Code:
Private Sub which_quarter()
myValue = InputBox("Which Quarter? 3,4", "", 1)
If myValue = "3" Then
Call Q3_1
ElseIf myValue = "4" Then
Call Q4_1
End If
End Sub