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 derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Formatting all sheets within a workbook?

Status
Not open for further replies.

Zaichik123

Technical User
Joined
Sep 4, 2003
Messages
18
Location
GB
I've tried doing this via a With ActiveSheet.PageSetup and then selecting all sheets to run the macro on - and also With ActiveWorkBook.PageSetup but still to no avail.

Predominantly I want to PrintTitleRows across all sheets within a workbook - is this possible? Whats the code for this?

Z123
 
Not sure exactly what code you're trying to run on each sheet, but you can loop through all the sheets using something like:
Code:
Dim ws As Worksheet
For Each ws In ActiveWorkbook.Worksheets
   ws.PageSetup ' do whatever here
Next ws
Let me know if that's what you are after!

VBAjedi [swords]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top