T
Tony_VBACoder
Can someone tell me why if I name a Public Function "NAME", I get a run-time
error when I try to use the Application.Run VBA code in Word 2000?
Application.Run "NAME"
However, if I use Application.Run "NAME1" instead, and rename my function to
"NAME1", it works? My assumption is, you cannot name a function "NAME", for
whatever reason. My simple function is listed below:
Public Function NAME()
MsgBox "Hello"
End Function
error when I try to use the Application.Run VBA code in Word 2000?
Application.Run "NAME"
However, if I use Application.Run "NAME1" instead, and rename my function to
"NAME1", it works? My assumption is, you cannot name a function "NAME", for
whatever reason. My simple function is listed below:
Public Function NAME()
MsgBox "Hello"
End Function