View Single Post
  #2   Report Post  
Posted to microsoft.public.excel.programming
Spencer Spencer is offline
external usenet poster
 
Posts: 29
Default select all sheets?

no need to select.

Dim sht As Worksheet
For Each sht In ActiveWorkbook.Worksheets
sht.PageSetup.LeftHeader = "HEADER TEXT")
Next sht

"MikeF" wrote:

I have a small macro that reworks the headers and footers in Excel.
But it works only on the active sheet.

What code can I put before it to "select all sheets" in the workbook?

Thanx,
- Mike