Leading the way in Microsoft Office Development
 Home|Excel|Word|PowerPoint|Consultancy|Feedback|Contact 
 Microsoft Word > Fields > Document Automation > MACROBUTTON

 MACROBUTTON MacroName DisplayText
 Inserts a macro command, which you can run by double-clicking the results of a MACROBUTTON field. You can also click in the MACROBUTTON field and then press ALT+SHIFT+F9.

 macronameThe name of the macro to run when you double-click the field result.
 displaytextThe text or graphic to appear as the "button." You can use a field that results in text or a graphic, such as BOOKMARK or INCLUDEPICTURE.

 REMARKS
 
  • The macro must be available in the active document template or a global template.
  •  
  • The text or graphic must appear on one line in the field result; otherwise, an error occurs.

  •  EXAMPLES
     { MACROBUTTON PrintEnvelope }

     Fields - M | Index - M | Office Online 

     Copyright © 2004-2007 Better Solutions Limited. All Rights Reserved.Top