Passing Argument with Application.Run in Word VBA

前端 未结 1 1800
北海茫月
北海茫月 2020-12-21 09:17

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

Pub         


        
相关标签:
1条回答
  • 2020-12-21 09:59

    This appears to be long-standing problem with Word.

    As KB190235 suggests:

    Cause:
    You have included a template name as part of the Macroname argument string.

    Resolution:
    Remove the template name from the Macroname argument.

    Workaround:
    To avoid naming conflicts among referenced projects, give your procedures unique names, so that you can call a procedure without specifying a project or module.

    0 讨论(0)
提交回复
热议问题