How To Pass Parameters to a Word 97 Macro (171988)
The information in this article applies to:
- Microsoft Visual FoxPro for Windows 3.0
- Microsoft Visual FoxPro for Windows 3.0b
- Microsoft Visual FoxPro for Windows 5.0
- Microsoft Visual FoxPro for Windows 5.0a
- Microsoft Visual FoxPro for Windows 6.0
This article was previously published under Q171988 SUMMARY
When using OLE automation to Microsoft Word 97, it is often desirable to
pass parameters from Visual FoxPro to the Word 97 object. The Run method is
normally used to execute a Word macro through OLE automation; however, the
Run method cannot accept parameters. To pass parameters to the Word object,
there must be a public Word macro that is a method of a document or
template.
REFERENCES
Microsoft Word Visual Basic Help
(c) Microsoft Corporation 1997, All Rights Reserved.
Contributions by Dean Christopher, Microsoft Corporation
Modification Type: | Minor | Last Reviewed: | 7/1/2004 |
---|
Keywords: | kbcode kbhowto kbinterop KB171988 |
---|
|