My challenge is that I'm receiving a compile error: Expected Sub, Function or Property
Example:
Code: Select all
oPrompt = InputBox("Your Choices Are: 01, 02 or 03","Entry Required...","Please Enter Your Selection")
If oPrompt = "01" Then
oSelection = "Run_SubRoutine_01"
ElseIF oPrompt = "02" Then
oSelection = "Run_SubRoutine_02"
ElseIF oPrompt = "03" Then
oSelection = "Run_SubRoutine_03"
Else
'Do Nothing
End IF
'More code here
'More code here
'More code here
'More code here
'*************************************
'Now run the code from the prompt - The compile error happens here. Each sub-routine ie Run_Subroutine_?? has been coded correctly.
oSelection
John