LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
A C A C is offline
external usenet poster
 
Posts: 8
Default Q: copying PageSetup properties from one worksheet to another

Hi

Can someone tell me how to correctly copy the PageSetup properties from 1
worksheet to another. I would like to copy every property over but dont
want to write code listing every single property, I would like to do it
"automatically" in the code.

For example, will the following work properly?

myNewWorksheet.PageSetup = myOldWorksheet.PageSetup


Or is there a way to loop over the pageSetup properties?
eg
for each ??? in PageSetup
myNewWorksheet.PageSetup.???? = myOldWorksheet.PageSetup.???
next ???


Thanks
A


 
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
Worksheet Properties - Last User John Calder New Users to Excel 1 May 11th 07 01:30 AM
Worksheet properties Jello Excel Programming 7 March 2nd 05 03:17 AM
worksheet Name and (Name) properties Mikhail Excel Programming 1 October 2nd 03 10:50 AM
Properties - Workbook and Worksheet Sandy[_3_] Excel Programming 1 September 6th 03 07:01 PM
resetting worksheet properties Michael J. Malinsky Excel Programming 1 July 15th 03 05:23 PM


All times are GMT +1. The time now is 04:50 PM.

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

About Us

"It's about Microsoft Excel"