Print, Print Setup dialog boxes
Print dialog box options
Use the Print dialog box to print forms and code to the printer specified in the Control Panel.
Option | Description |
---|---|
Printer | Identifies the printer to which you are printing. |
Range | 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. |
OK | Prints your selection. |
Cancel | Closes the dialog box without printing. |
Setup | Displays the standard Print Setup dialog box. |
Print Setup dialog box options
Appears whenever you select Setup from the Print dialog box.
Use the Print Setup dialog box to select the printer, page orientation, and paper size.
Option | Description |
---|---|
Printer | Allows you to specify the printer. If you don't select a printer, Visual Basic prints to the Windows default printer. - Name: Displays a list of available printers. - Status: Displays the status of the printer and whether it is ready to print. - Type: Displays the type of printer. - Where: Displays the location of the printer. If the printer is on a network, displays the path to the server. - Comment: Displays the physical location of the printer and additional information. - Properties: Opens the Properties dialog box specific to the printer where you can choose additional options such as paper and the way graphics are printed. |
Paper | Allows you to select the paper size and source (from among those available for the printer). The sizes and sources available depend on the printer you have selected, and they change when you change printers. - Size: Displays a list of the available paper sizes. - Source: Displays the available source of paper for the printer you choose. |
Orientation | Allows you to specify whether the program is to print in Portrait or Landscape orientation. |
See also
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.