Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

You cannot change the Print command on the File menu in Word 2010 by using a macro

View products that this article applies to.


In Microsoft Word 2010, you cannot change the Print command on the File menu by using a macro. When you create and then run a macro that is named "FilePrint," the Print dialog box appears unexpectedly.

↑ Back to the top


To work around this issue, use a Microsoft Office 2010 Custom UI part to customize Backstage View. For example, use the following code to create a new button that is labeled "PrintII" that triggers the FilePrint command. This Custom UI part also hides the Print tab in Backstage.

Note You must have an existing Visual Basic for Applications (VBA) method that is named "FilePrint."

<customUI xmlns="">
    <button id="printBtn" label="PrintII" imageMso="PrintAreaMenu" onAction="FilePrint" insertAfterMso="FileSaveAs" />
    <tab idMso="TabPrint" visible="false" />

↑ Back to the top


For more information about how to change Word commands, visit the following Microsoft website:
For more information about how to customize the Office 2010 Backstage View, visit the following Microsoft Developer Network (MSDN) website:

↑ Back to the top

Keywords: consumeroff2010track, kbentirenet, kbbug, kbtshoot, kbsurveynew, kb

↑ Back to the top

Article Info
Article ID : 983261
Revision : 1
Created on : 1/7/2017
Published on : 12/13/2012
Exists online : False
Views : 206