gvreddyhr
10-30-2011, 12:49 AM
Hi,
Thank you all for your timely support, I want to call two macros based on if condition, but I am not able to do it, can anyone tell me where am I going wrong..
Sub 2macrosusingif ()
Dim MyInput
MyInput = InputBox("Please Specify which macro needs to be called (send , Display) ")
If Myinput = Send then
Call Send()
Else if MyInput = Display then
Call Display()
End if
End Sub
Regards,
GV Reddy
Thank you all for your timely support, I want to call two macros based on if condition, but I am not able to do it, can anyone tell me where am I going wrong..
Sub 2macrosusingif ()
Dim MyInput
MyInput = InputBox("Please Specify which macro needs to be called (send , Display) ")
If Myinput = Send then
Call Send()
Else if MyInput = Display then
Call Display()
End if
End Sub
Regards,
GV Reddy