LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 14
Default Macro geneated headers not displaying some sheets


"What-A-Tool" wrote in message
...
Sorry - lost my original post _

Have a macro that creates a workbook, copies som sheets from various other
books, then loops thru all sheets, creating a header fro each.
For some unknown reason, my header is only appearing in about half of my
sheets, even tough my procedure is hitting and running the following code
for each sheet in my book,
I have run this code on other books and it seems to work.



Simple solution that for some reason just wasn't registering !
The sheets that my header wasn't showing up on had a TOP MARGIN of .5in
The sheets that it was working on had a TOP MARGIN of 1.25in
All works fine with a simple edition to my AddHeader Procedure :

sht.PageSetup.TopMargin = Application.InchesToPoints(1.25)

Thanks Tom and Jim for taking the time to try and help - Sean




 
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
Can I duplicate headers and footers on multiple sheets? HeatherDBecerra Excel Worksheet Functions 2 April 13th 07 09:12 PM
vba : Headers not displaying in all sheets SeanMc Excel Programming 1 March 21st 07 05:03 PM
how do i change headers on all workbook sheets globally? Muntly Excel Discussion (Misc queries) 2 March 13th 07 12:19 AM
Macro turning colums w/headers into list on multiple sheets MentalDrow Excel Programming 1 April 10th 06 06:32 PM
how do I copy excel sheets with headers BJ Excel Worksheet Functions 1 February 15th 05 04:24 AM


All times are GMT +1. The time now is 04:19 AM.

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"