Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Set print range for multiple worksheets 1

Status
Not open for further replies.

sgreenwood

Technical User
May 7, 2001
48
US
Does anyone know of a way to globally set a print range for multiple worksheets? I have several files that contain about 40 worksheets each. I can set many of the print items globally (margins, headers, etc)but Excel won't allow me to set a print range with multiple pages highlighted.

Any ideas would be greatly appreciated!

Thanks,
Steve
 
Are the print ranges all similar ?? If so,
Code:
For i = 1 To Worksheets.Count
Worksheets(i).Activate
    With ActiveSheet.PageSetup
        .Orientation = xlPortrait
        .Draft = False
        .PaperSize = xlPaperLetter
        .FirstPageNumber = xlAutomatic
        .Order = xlDownThenOver
        .BlackAndWhite = False
        .Zoom = False
         'etc
    End With
Next i
Tyrone Lumley
augerinn@gte.net
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top