Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Dave
 
Posts: n/a
Default Moving a chart from one workbook to another

I am creating a file that is updated on a monthly basis and then used to
populate sub-reports. I use a macro to paste special the values, formats,
and widths into the sub-reports so the user does not have to update the file
each time they use it. I would like to include a graph from the main file in
the sub-reports.

Is there a way to paste just the graph and not the underlying links, like
using a paste special values command, into the sub-report? I would like to
show the "picture" of the graph.

Thanks
  #2   Report Post  
John Mansfield
 
Posts: n/a
Default

Dave,

To copy the chart as a picture, click on the chart (activate it). Press the
Shift key and go to Edit - Copy Picture. Choose the picture option that you
want, activate a cell somewhere else in your worksheet, and hit Edit - Paste.

Assuming your chart is called "Chart 1", the macro recorder returns . . .

Sub CopyPicture()
ActiveSheet.Shapes("Chart 1").Select
Selection.CopyPicture Appearance:=xlScreen, Format:=xlPicture
Range("A1").Select
ActiveSheet.Paste
End Sub

----
Regards,
John Mansfield
http://www.pdbook.com


"Dave" wrote:

I am creating a file that is updated on a monthly basis and then used to
populate sub-reports. I use a macro to paste special the values, formats,
and widths into the sub-reports so the user does not have to update the file
each time they use it. I would like to include a graph from the main file in
the sub-reports.

Is there a way to paste just the graph and not the underlying links, like
using a paste special values command, into the sub-report? I would like to
show the "picture" of the graph.

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
= Drawing more lines in a OHLCV chart = hcova Charts and Charting in Excel 1 December 13th 04 04:57 AM
Changing chart orientation Melissa Charts and Charting in Excel 3 December 10th 04 10:15 PM
pivot table multi line chart souris Charts and Charting in Excel 2 December 7th 04 03:56 AM
Paste a chart as a link? PhilGTI Charts and Charting in Excel 3 December 4th 04 05:31 AM
Why do my text boxes disappear from my chart when I click out? Robboo Charts and Charting in Excel 1 November 27th 04 05:49 PM


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