How to set print area to multiple worksheets at once time in Excel?
In general, you just can set print area in one worksheet at a time in Excel, but if you want to set the same print area in multiple worksheets in a workbook, is there any quick ways to solve it? Now, I will tell you some details on the quick ways to set same print area in multiple worksheets.
Set same print area to multiple worksheets with Kutools for Excel
Set same print area to multiple worksheets with VBA
Set same print area to multiple worksheets with Kutools for Excel
Kutools for Excel is a handy Excel add-in, and its Copy Page Setup feature can help you quickly set print area to multiple worksheets.
Kutools for Excel includes more than 300 handy Excel tools. Free to try with no limitation in 30 days. Get it Now
1. Select the print area in one of the worksheet, and then click Page Layout > Print Area > Set Print Area. See screenshot:
2. Click Enterprise > Printing Tools > Copy Page Setup. See screenshot:
3. In the Copy Page Setup dialog, check the worksheets you want to set print area at the meanwhile, then click Sheet tab, and check Print area only in the Page setup section. See screenshot:
4. Then click Ok to close the dialog, and click Yes in the coming Kutools for Excel warning dialog box, then the checked worksheets are set with same print areas at once.
Click here for more detail on Copy Page Setup.
Set same print area to multiple worksheets with VBA
If you are interested in VBA, you can try the following VBA.
1. Select a range you want to set as print area in one of worksheets and press Alt + F11 keys to open the Microsoft Visual Basic For Applications window.
2. Click Module > Insert to insert a Module window, and copy the below VBA into the window.
VBA: Set print area in the whole workbook.
Sub SetGlobalPrintArea()
'Updateby20140827
Dim xWs As Worksheet
Dim WorkRng As Range
Set WorkRng = Application.Selection
For Each xWs In Application.ActiveWorkbook.Worksheets
xWs.PageSetup.PrintArea = WorkRng.Address
Next
End Sub
3. Click Run button to run the VBA, and then all the worksheets in the workbook will be set with the same print areas.
Tip:
If you want to set print area in selected worksheets, you can do as follow:
1. Select a range you want to set it as print area and then select the worksheets by pressing Ctrl keys you need, then press Alt + F11 keys to open the Microsoft Visual Basic For Applications window.
2. Click Module > Insert to insert a Module window, and copy the below VBA into the window.
VBA: Set print area in selected worksheets.
Sub SetSelectWsPrintArea()
'Updateby20140827
Dim xWs As Worksheet
Dim WorkRng As Range
Set WorkRng = Application.Selection
For Each xWs In Application.ActiveWindow.SelectedSheets
xWs.PageSetup.PrintArea = WorkRng.Address
Next
End Sub
Best Office Productivity Tools
Supercharge Your Excel Skills with Kutools for Excel, and Experience Efficiency Like Never Before. Kutools for Excel Offers Over 300 Advanced Features to Boost Productivity and Save Time. Click Here to Get The Feature You Need The Most...
Office Tab Brings Tabbed interface to Office, and Make Your Work Much Easier
- Enable tabbed editing and reading in Word, Excel, PowerPoint, Publisher, Access, Visio and Project.
- Open and create multiple documents in new tabs of the same window, rather than in new windows.
- Increases your productivity by 50%, and reduces hundreds of mouse clicks for you every day!