Common footer but not common margins please -(Page 1 of 2) etc
You are overlooking the fact that grouped sheets take on the print
properties of the active sheet.
I would run this macro to set just the common footer and not upset the other
print properties.
Sub Path_All_Sheets()
Set wkbktodo = ActiveWorkbook
For Each ws In wkbktodo.Worksheets
ws.PageSetup.RightFooter = ActiveWorkbook.FullName & " " & Chr(13) _
& Application.UserName & " " & Date
Next
End Sub
Adjust to suit your custom footer.
Gord Dibben MS Excel MVP
On Tue, 26 Aug 2008 07:47:00 -0700, RajenRajput1
wrote:
Hi.
I'm a little hacked off. :o) (In a nice way)
Using Excel 2007.
My margins keep resetting after putting in footers for the whole workbook in
one go.
Say sheet 1 has a margin of 1 inch from the top.
Say sheet 2 has margin 5 inch from the top.
When I select all sheets, and then add a footer like "Page &[Page] of
&[Pages]", then do print preview, the footers are correct, but the margins
change to be the same common size as the original sheet where I did the
changes.
What am I overlooking here? I only want to make a common footer, not a
common margin or page layout.
Any help would be appreciated, and I will give further info if necc.
Thank you very much.
|