Hi Edd P
Sub TryThis()
Dim MacroName as String
MacroName="MySub"
Run MySub
End Sub
Sub MySub
Msgbox "Hello"
End Sub
Dave
OzGrid Business Applications
Sub TryThis()
Dim MacroName as String
MacroName="MySub"
Run MySub
End Sub
Sub MySub()
Msgbox "Hello"
End Sub
Dave
OzGrid Business Applications
Dave
Edd P
Dave pasted the same typo. Should be :-
Sub TryThis()
Dim MacroName as String
MacroName="MySub"
Run MacroName
End Sub
Sub MySub()
Msgbox "Hello"
End Sub
If you want to take the macro name from a worksheet cell (say,A1) :-
Sub TryThis()
Dim MacroName as String
MacroName=Range("A1")
Run MacroName
End Sub
Sub MySub()
Msgbox "Hello"
End Sub
Celia
I actualy missed out the () in my first post, didn't even realise I had the other typo. That's what happen when you type directly at 0500 without testing I guess :)
DaveOzGrid Business Applications
I actualy missed out the () in my first post, didn't even realise I had the other typo. That's what happens when you type directly at 0500 without testing I guess :)
DaveOzGrid Business Applications