The information in this article applies to:
SUMMARYThe Show Variables toolbar button and the ShowVars statement in the Word macro editor, display a list of variables and their current values to help you debug the active macro. However, array elements and dialog box variables are not displayed in the Macro Variables dialog box. MORE INFORMATION
In order to check the value of an array element, you can use a MsgBox
statement and specify an array element. The following macro displays
the value of the third element in the month$(2) array "MAR" (the array
begins at zero).
The Msgbox statement can also be used to display the value of a dialog box
variable. The following macro displays the value assigned to the
"dlg.Textbox" variable (the text entered into the TextBox).
REFERENCES"Microsoft WordBASIC Primer," by Russell Borland, pages 115-117 Additional query words: word basic
Keywords : kbmacro kbmacroexample winword macword word6 winword2 word7 word95 |
Last Reviewed: December 23, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |