How To Print Multiple Worksheets In Excel To Pdf Using Vba

How To Print Multiple Worksheets In Excel To Pdf Using Vba

How To Print Multiple Worksheets In Excel To Pdf Using Vba. To print more than one worksheet, you can put the worksheet names in an array like this. Return to landscape page and select clear print area from page layout area

How To Print Multiple Worksheets In Excel To Pdf Using Vba
Export Multiple Sheets to a Single PDF Excel VBA YouTube from www.youtube.com

Return to portrait page and select clear print area from page layout area 8. Select multiple worksheets in excel. Confirm selected sheets by press with left mouse button oning yes.

Code Sub Printmultiplesheets() Application.screenupdating = False On Error Goto N20 Worksheets(1).Select Goto N1 N10:

It wasn't until i used: I tried saving two sheets as a single pdf using: Return to portrait page and select clear print area from page layout area 8.

For Anyone Looking To Print Multiple Sheets, You Have Certain Sheets You Want To Print, And You Don't Want To See A Print Preview, Try This.

Before you run the macro, select the sheet (s) that you want to export to the pdf file. Select the three worksheets by holding down the ctrl key while clicking each worksheet with the mouse left button. Confirm selected sheets by press with left mouse button oning yes.

A Dialog Box Appears, Choose A Save Folder.

Go the excel’s back page by navigating to the file ribbon. Enter your file name of choice and click the “publish” button. Sub printarrayofworksheets () dim vaworksheets as variant vaworksheets = array (sheet1, sheet2, sheet3) thisworkbook.worksheets (vaworksheets).printout end sub.

See also  How To Print Excel Tabs Into Pdf

To Print More Than One Worksheet, You Can Put The Worksheet Names In An Array Like This.

One practical use of selecting multiple worksheets is to print selected worksheets. Hold down ctrl and then left click the mouse on each worksheet tab. It will go through all the sheets in your workbook and save each one to a separate pdf file using the worksheet name as file name.

(2) Holding The Shift Key, You Can Select Multiple Adjacent.

At first i thought i could have a vba macro on the sheet do this by a series of print as pdf, but that requires an intermediary interactive dialog box to specify the output file name. Specify the full path and filename of the file. Press with left mouse button on ok.

Leave a Comment