#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default COPY CHARTS

Hi,
how do I copy all charts in hidden sheet using a loop, my idea is
display a preview of each chart in a main sheet, and I'd like to use a loop
something like

for each chart in sheet2
chart(x).activate
chart(x).copy
sheet1.select
activesheet.paste
next x

well that's the main idea, any help will be greatly appreciated, thanks !!


  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default COPY CHARTS

You don't want to try to activate a hidden sheet (and don't need to).

Dim cObj as ChartObject
for each cObj in Worksheets("sheet2").ChartObjects
cObj.copy
Range("C9").Select
Activesheet.Paste
Next

--
Regards,
Tom Ogilvy


msnews.microsoft.com wrote in message
...
Hi,
how do I copy all charts in hidden sheet using a loop, my idea is
display a preview of each chart in a main sheet, and I'd like to use a

loop
something like

for each chart in sheet2
chart(x).activate
chart(x).copy
sheet1.select
activesheet.paste
next x

well that's the main idea, any help will be greatly appreciated, thanks !!




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
Charts don't copy with new sheet MacPadana Excel Worksheet Functions 16 February 9th 09 03:58 PM
Copy Charts archsmooth Charts and Charting in Excel 5 December 4th 07 03:07 PM
How do I copy spreadsheets with charts? Helge Charts and Charting in Excel 2 August 11th 06 12:02 PM
How can I get headers to copy in charts? KC Charts and Charting in Excel 1 March 17th 06 07:33 PM
How to copy charts bob777 Excel Discussion (Misc queries) 0 November 30th 05 09:46 AM


All times are GMT +1. The time now is 01:31 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"