The information in this article applies to:
SUMMARY
In a Microsoft Word dialog box, a selected check box has a value of 1 and a
clear check box has a value of 0. To reverse or toggle a check box value,
subtract 1 from the current value and use the Abs() function to produce the
absolute value of the result.
In the above example, dlg.Pagination relates to the Pagination parameter
for the ToolsOptionsGeneral macro command:
The Dim statement is used to declare a dialog box record variable in which
the values of a Word dialog box can be stored. The GetCurValues statement
stores the current values for the previously dimensioned dialog box in the
specified dialog box record. The above example uses "dlg" as the name of
the dialog record.
MORE INFORMATIONTo set a value in a Word dialog box, set the dialog box record variable (that is, the dlg.parameter) to 1 or 0:
The following macro example clears the Prompt For Summary Info check box in
the ToolsOptionsSave dialog box:
REFERENCES"Using WordBasic," by WexTech Systems and Microsoft, pages 174 and 228. Additional query words: Dim dlg GetCurValues deselect gray out enable disable grey unavailable Reverse Abs Toggle
Keywords : kbmacro wordnt kbmacroexample winword ntword macword word6 winword2 word7 word95 |
Last Reviewed: December 28, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |