

Related Content: Excel VBA: Set Print Area for Multiple Ranges (5 Examples) Step 4: Running the VBA Code to Print in ExcelĪfter entering the VBA code properly, run the Macro by clicking the Run option in the VBA toolbar. How to Print Excel Sheet in A4 Size (4 Ways).Print Titles in Excel Is Disabled, How to Enable It?.Print Multiple Excel Sheets to Single PDF File with VBA (6 Criteria).How to Print Horizontally in Excel (4 Methods).Excel Button to Print Specific Sheets (With Easy Steps).Related Content: Excel VBA: How to Set Print Area Dynamically (7 Ways) Set it to be True.Ī copies:=10, Collate:=True The PrintOut function of VBA has a property called Collate. If you want to print multiple worksheets and collate them while printing, there is also an option for you.If you want to print more than one copy, change the copies property accordingly. Here we’re printing only one copy of the worksheet.Workbook(“Workbook1”).Worksheets(“Sheet1”).PrintOut copies:=1 For example, to print out Sheet1 from a workbook called Workbook1, use: You can also print from a workbook that’s not active.

To print any other worksheet, write the name of the worksheet directly in the code.įor example, to print out the worksheet called Sheet1, use:ĪctiveWorkbook.Worksheets(“Sheet1”).PrintOut copies:=1

Step 1: Opening the VBA Editor to Print in Excel Today we’ll learn how we can print this data set with VBA. Here I’ve got a data set with the Names, Types, and Prices of some books of a bookshop called Martin Bookstore.
