Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Setting page properties for all sheets in Excel using OLE

Status
Not open for further replies.

weathejx

Programmer
Jul 17, 2002
6
US
using OLE ive created a work book in excel that has multiple sheets of information. i want to format all of the sheets page properties (Landscape, print zoom, header/footer, etc). the only way that i have come across to do this is to go to each sheet, change change all the properties and then move to the next sheet. the problem with this is that it is VERY time consuming. just changing all the properties adds about 4minutes or so onto the runtime.

anyone have an idea on how to change the page properties of ALL the pages? ive tried using a template excel file but only the first sheet is formatted.

thanks

x
 
the FillAcrossSheets method might do what you want. I think you have to set the formats on the first sheet, then you can apply those to the rest.. I've never tried this, so I could be wrong.. just a suggestion.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top