drom
Well-known Member
- Joined
- Mar 20, 2005
- Messages
- 527
- Office Version
- 2021
- 2019
- 2016
- 2013
- 2011
- 2010
- 2007
Hi and Thanks in advance!
If i run the Macro M001
If My Activecell value is M001
And I have the following code:
Why?
If i run the Macro M001
I get the message Hello M001
But when I run the macro AA and my Activecell is =M001 I get err 1004
If My Activecell value is M001
And I have the following code:
VBA Code:
Sub AA() 'aTxTs
Dim wCell As String: wCell = ActiveCell.Value
Application.Run wCell
End Sub
Sub M001()
MsgBox "HELLO, M001"
End Sub
Sub M002()
MsgBox "HELLO, M002"
End Sub
Sub M003()
MsgBox "Bye Bye, M003"
End Sub
Why?