Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default copy formatting

Hi!

I want to copy an entire workbook to a new workbook by using:

sourceWorkBook.sheets(arr).Copy After:=NewBook.sheets(3)

where arr is an array of worksheet-names, this works fine with one
exception - the formatting does not seem to be copied along with the
content.

How can I achive this?


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1,092
Default copy formatting

Olaf if the 2 books are to be identical, why not use SaveAs?

Activeworkbook.SaveAs FileName: = "C:/My Documents/My Stuff/Copy2.xls"

Mike F
"Olof Carlsson" wrote in message
...
Hi!

I want to copy an entire workbook to a new workbook by using:

sourceWorkBook.sheets(arr).Copy After:=NewBook.sheets(3)

where arr is an array of worksheet-names, this works fine with one
exception - the formatting does not seem to be copied along with the
content.

How can I achive this?




  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 3
Default copy formatting

Unfortunately i can not use saveas in my project since it is a workaround
for another problem ...

"Mike Fogleman" wrote in message
...
Olaf if the 2 books are to be identical, why not use SaveAs?

Activeworkbook.SaveAs FileName: = "C:/My Documents/My Stuff/Copy2.xls"

Mike F
"Olof Carlsson" wrote in message
...
Hi!

I want to copy an entire workbook to a new workbook by using:

sourceWorkBook.sheets(arr).Copy After:=NewBook.sheets(3)

where arr is an array of worksheet-names, this works fine with one
exception - the formatting does not seem to be copied along with the
content.

How can I achive this?






Reply
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
Using copy and destination formatting Jeff S.[_2_] Excel Discussion (Misc queries) 6 August 18th 09 11:24 AM
Copy formatting, Help robert morris Excel Discussion (Misc queries) 9 March 5th 08 10:20 PM
Is it possible to copy all formatting from one chart to another? OK Charts and Charting in Excel 1 November 27th 07 09:31 PM
How do I copy formatting from one worksheet to several others? Rhonda Excel Discussion (Misc queries) 5 August 31st 06 12:16 AM
copy font...not formatting Geoff[_9_] Excel Programming 4 May 15th 04 07:55 AM


All times are GMT +1. The time now is 02:42 AM.

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"