Name
workbook.PrintOut([From], [To], [Copies], [Preview], [ActivePrinter], [PrintToFile], [Collate], [PrToFileName])
Synopsis
Prints the workbook.
|
Argument |
Settings |
|---|---|
|
|
The starting page number to print. |
|
|
The ending page number to print. |
|
|
The number of copies to print. |
|
|
True previews the workbook before printing; False does not (default). |
|
|
The name of the printer to use. |
|
|
True sends output to a file; False sends output to the printer (default). |
|
|
True prints in collated order; False prints from first page to last (default). |
|
|
If |
The following code prints the first page of the current workbook:
ThisWorkbook.PrintOut 1, 1
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access