The information in this article applies to:
SUMMARY
You cannot directly define and display a Microsoft Word 6.0 dialog box
through OLE Automation. However, you can run a WordBasic macro that
displays a dialog box.
WordBasic ToolsMacro Parameter Syntax
ExamplesThe following Visual Basic procedure activates Word for Windows and runs a global macro named "test".
NOTE: Word needs to have the focus (AppActivate) prior to running the
global "test" macro.
The "test" macro can be used to display a Word dialog or a user-defined dialog. The following WordBasic macros serve as examples of each. REM WordBasic macro named "Test" REM This macro displays Word's FileSaveAs dialog
REM WordBasic macro named "Test"REM This macro displays a user-defined dialog.
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT
YOUR OWN RISK. Microsoft provides this macro code "as is" without
warranty of any kind, either express or implied, including but not
limited to the implied warranties of merchantability and/or fitness
for a particular purpose.
REFERENCES"Microsoft Word Developer's Kit," version 6.0, Microsoft Press, 1993, pages 179-180 Additional query words: 6.0 visual basic appactivate word6 7.0 word95 word7 winword user defined
Keywords : kbole |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |