May 1999
Intermediate to advanced
1440 pages
38h 6m
English
The MACROBUTTON field inserts a button in your text that, when double-clicked, runs a specified macro and inserts the results in your document.
{ MACROBUTTON macroname displaytext }
The "macroname" can be any macro currently accessible to Word; in other words, any macro in an active template.
You can use Macrobutton to insert a button that runs any macro you create or a command that comes with Word. To display the message "Print One Copy Now," and attach the command "FilePrintDefault," which does just that when clicked:
{ MACROBUTTON FilePrintDefault Print One Copy Now }
→ For more information about recording and writing macros, see Chapter 31, "Recording and Running Visual Basic Macros".
Read now
Unlock full access