Passing Argument with Application.Run in Word VBA
问题 I have the following two Sub defined in my Word Addin (.dotm) which I have put in StartUp directory Public Sub SayHi1() MsgBox "Hi......." End Sub Public Sub SayHi2(ByVal n As String) MsgBox "Hi " & n End Sub Then from a new document I am able to call 1st Sub without argument as below: Sub AppRun_AddIn_NoArg() Application.Run "MyProject.Module1.SayHi1" End Sub But when I try to run the 2nd Sub with argument I get error saying "Object doesn't support this property or method" Sub AppRun_AddIn