LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Sheet Group & Formating in VBA

Hi,

I'm having problems with group multiple worksheets together an
giving them all the same Header & Footer. My current code looks lik
this:

Sheets(Array("Aggregate FY", "Aggregate Q1", "Aggregate Q2", "Aggregat
Q3", "Aggregate Q4", _
"Unit FY", "Unit Q1", "Unit Q2", "Unit Q3", "Unit Q4")).Select

With ActiveSheet.PageSetup
.LeftHeader = ""
.CenterHeader = "" & Chr(10) & "&""Arial,Bold""CONFIDENTIA
-- NOT FOR DISTRIBUTION"
.RightHeader = "&A"
.LeftFooter = "&D"
.CenterFooter = "&P of &N"
.RightFooter = "&F"
.LeftMargin = Application.InchesToPoints(0.75)
.RightMargin = Application.InchesToPoints(0.75)
.TopMargin = Application.InchesToPoints(1)
.BottomMargin = Application.InchesToPoints(1)
.HeaderMargin = Application.InchesToPoints(0.5)
.FooterMargin = Application.InchesToPoints(0.5)
.PrintHeadings = False
.PrintGridlines = False
.PrintComments = xlPrintNoComments
.PrintQuality = 600
.CenterHorizontally = True
.CenterVertically = True
.Orientation = xlLandscape
.Draft = False
.PaperSize = xlPaperLetter
.FirstPageNumber = xlAutomatic
.Order = xlDownThenOver
.BlackAndWhite = False
.Zoom = False
.FitToPagesWide = 1
.FitToPagesTall = 1
.PrintErrors = xlPrintErrorsDisplayed
End With

So far the only sheet that is recieving the correct Header is the firs
sheet, "Aggregate FY". Any ideas what I'm missing or a better way to g
about this?

Thanks

--
Message posted from http://www.ExcelForum.com

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
list sheet 1 - same cell (eg A1) in a group of worksheets sheet Helen B Excel Worksheet Functions 2 February 10th 08 12:51 AM
Sheet Group TeeSee Excel Discussion (Misc queries) 3 November 17th 06 07:29 PM
How can I group formating, not data on worksheets? Lana Excel Worksheet Functions 2 January 19th 06 06:49 PM
How do I group worksheets (Lotus 123 function is "Sheet>Group Shee jaking Excel Worksheet Functions 2 August 30th 05 02:09 PM
conditional formating of group of columns and rows Madhav Excel Worksheet Functions 0 March 8th 05 06:21 PM


All times are GMT +1. The time now is 06:51 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"