Page Setup for entire workbook

  • Thread starter Thread starter chrisn
  • Start date Start date
C

chrisn

We have a several workbooks that are over 100 sheets each. I would lik
to change the setup on all of these to print out "Landscape".

Is there an easy way to change the "Page Setup" on an entire existin
workbook, or do I have to change it one sheet at a time?

Chris Nelso
 
Hi
- select the first sheet
- hold down the SHIFT key and select the last sheet (to
group the sheets)
now change the pagesetup
 
Chris

To change just the orientation and no other setups on each sheet run this
macro.

Sub LandscapeAllSheets()
Application.ScreenUpdating = False
Dim N As Single
For N = 1 To Sheets.Count
Sheets(N).PageSetup.Orientation = xlLandscape
Next N
Application.ScreenUpdating = True
End Sub

With 100 sheets, pour another cup of coffee.

Gord Dibben Excel MVP
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top