S
Steve W.
I have a group of macros that I have been running from shortcuts using a
small exe created in Visual Basic 6.0. These macros have been running this
way since Word 98. To run a macro I pass 2 parameters to identify which
macro to run and use this code:
'start Word
Set appWord = CreateObject("Word.Application")
With appWord
.Visible = False
.Run MacroName:=strMacroName
EndWith
where strMacroName is filled with the name of the macro to run. As I said
this has been working since Word98, but now I receive an error message:
"Run-time error 5111: This command is not available on this platform". The
macros are now in Word 2007 and this had been working until I had to add a
new macro to Word and put its edit check in VB6 and recomplie the exe.
Anybody know what I need to run the macros this way.
Thanks
small exe created in Visual Basic 6.0. These macros have been running this
way since Word 98. To run a macro I pass 2 parameters to identify which
macro to run and use this code:
'start Word
Set appWord = CreateObject("Word.Application")
With appWord
.Visible = False
.Run MacroName:=strMacroName
EndWith
where strMacroName is filled with the name of the macro to run. As I said
this has been working since Word98, but now I receive an error message:
"Run-time error 5111: This command is not available on this platform". The
macros are now in Word 2007 and this had been working until I had to add a
new macro to Word and put its edit check in VB6 and recomplie the exe.
Anybody know what I need to run the macros this way.
Thanks