This documentation is archived and is not being maintained.

Print Command (File Menu)

This page is specific to the Visual Basic for Applications (VBA) Language Reference for Office 2010.

Prints forms and code to the printer specified in the Microsoft Windows Control Panel.

Toolbar shortcut: Gg278877.tbr_prnt_ZA01201725(en-us,office.14).gif. Keyboard shortcut: CTRL+P.


Identifies the printer to which you are printing.


Determines the range you print:

  • Selection — Prints the currently selected code.

  • Current Module — Prints the forms and/or code for the currently selected module.

  • Current Project — Prints the forms and/or code for the entire project.

Print What

Determines what you print. You can select as many options as you like, depending on what you selected as the Range.

  • Form Image — Prints the form images.

  • Code — Prints the code for the selected range.

Print Quality

Determines whether you print high, medium, low, or draft output quality.

Print to File

If selected, print is sent to the file specified in the Print To File dialog box. This dialog box appears after you choose OK in the Print dialog box.


Prints your selection.


Closes the dialog box without printing.


Displays the standard Print Setup dialog box.