The information in this article applies to:
SUMMARY
Using OLE Automation, you can retrieve settings from Word's dialog
boxes. In the client application, you need to create an object
variable to hold the dialog settings and then place the settings into
the variable.
The second instruction fills the object variable (OptionsVar) with the
settings from the Tools Options View dialog. CurValues is the method
used to return the current dialog box settings. Once the dialog box
settings are stored in the object variable, you can access the
individual settings using the following syntax:
The following Visual Basic procedure determines the current setting of
ShowAll in the ToolsOptionsView dialog, and toggles the setting:
NOTE: Visual Basic version 3.0 does not support named parameters, so
you must identify WordBasic arguments by position using commas as
placeholders.
The above Visual Basic procedure has the same functionality as the following WordBasic macro:
For information about how to do this in Word 97, please see the following
article in the Microsoft Knowledge Base:
Q159547 How to Remove Settings from Word Dialog Boxes Additional query words: 6.0 ole automation word basic word6 7.0 word95 word7 winword object visual curvalues dlg as dim
Keywords : kbole |
Last Reviewed: October 18, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |