View Single Post
  #5   Report Post  
Posted to microsoft.public.excel.programming
JE McGimpsey JE McGimpsey is offline
external usenet poster
 
Posts: 4,624
Default Using VBA to set Headers and Footers with Font and Fontsize parameters

At least do it for the selected sheets if multiple sheets are grouped
(and the activesheet if not)...

Dim wsSheet As Worksheet
For Each wsSheet In ActiveWindow.SelectedSheets
With wsSheet.PageSetup
'Do stuff
End With
Next wsSheet

In article ,
"Bob Phillips" wrote:

Rather than do it for every worksheet, just do it for the activesheet. It is
not necessary to do all of them.