HOWTO: Run a Word 97 Macro That Requires Arguments (172483)
The information in this article applies to:
- Microsoft Visual Basic Learning Edition for Windows 5.0
- Microsoft Visual Basic Learning Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 5.0
- Microsoft Visual Basic Professional Edition for Windows 6.0
- Microsoft Visual Basic Professional Edition for Windows 4.0
- Microsoft Visual Basic Enterprise Edition for Windows 5.0
- Microsoft Visual Basic Enterprise Edition for Windows 6.0
- Microsoft Visual Basic Enterprise Edition for Windows 4.0
- Microsoft Visual Basic Standard Edition for Windows 4.0
- Microsoft Word 97 for Windows
This article was previously published under Q172483 SUMMARY
When using Microsoft Word 97 as an ActiveX server, you can run a Word VBA
macro by using Word's Run method. However, the Run method with Word 97 cannot be used with Automation to run a macro that requires arguments. To run a Word macro that requires arguments, you can make your Word macro a method of your document or template. This article illustrates how to do this.
NOTE: The Run method has been updated in Word 2000 so that you can use that method to run a macro that requires arguments.
Modification Type: | Minor | Last Reviewed: | 2/21/2005 |
---|
Keywords: | kbAutomation kbhowto kbinterop KB172483 |
---|
|