B
Bill Sturdevant
I have a macro in Excel that calls a macro in a Word document with this code:
wordApp.Visible = True
wordApp.Activate
wordApp.Run ("myMacro")
But when I changed the Word macro to require parameters, using the following
code, I get Run-time error '-2147352573 (80020003)' Unable to run the
specified macro:
wordApp.Visible = True
wordApp.Activate
wordApp.Run ("myMacro", 'String with spaces', numVal1, numVal2)
So I tried using the following code, but I get Object doesn't support this
property or method:
wordApp.Visible = True
wordApp.Activate
result = wordApp.Run ("myMacro", 'String with spaces', numVal1,
numVal2)
What code should I be using?
wordApp.Visible = True
wordApp.Activate
wordApp.Run ("myMacro")
But when I changed the Word macro to require parameters, using the following
code, I get Run-time error '-2147352573 (80020003)' Unable to run the
specified macro:
wordApp.Visible = True
wordApp.Activate
wordApp.Run ("myMacro", 'String with spaces', numVal1, numVal2)
So I tried using the following code, but I get Object doesn't support this
property or method:
wordApp.Visible = True
wordApp.Activate
result = wordApp.Run ("myMacro", 'String with spaces', numVal1,
numVal2)
What code should I be using?