Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Charts in copied worksheets

H

I'm attempting to copy a worksheet from one workboo to antoher and than have the data as values in the new workbook including charts. I can us

With ActiveSheet.UsedRang
.Value = .Valu
End Wit

to turn all cells into values. The problem is with chart data sources. They stay as links to the source workbook and every time I open the new workbook it asks for link refresh

Is there a way of eliminating this programmatically and keeping chart appearance unchanged at the same time (almost like treating charts as pictures)

Thank

Shawn
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Charts in copied worksheets

Why not make the chart a picture?

--
Regards,
Tom Ogilvy


"Shawn" wrote in message
...
Hi

I'm attempting to copy a worksheet from one workboo to antoher and than

have the data as values in the new workbook including charts. I can use

With ActiveSheet.UsedRange
.Value = .Value
End With

to turn all cells into values. The problem is with chart data sources.

They stay as links to the source workbook and every time I open the new
workbook it asks for link refresh.

Is there a way of eliminating this programmatically and keeping chart

appearance unchanged at the same time (almost like treating charts as
pictures)?

Thanks

Shawn



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Charts in copied worksheets

Hi To

I need to keep the placement exact in the workbook and worksheet I'm copying charts to

I do have code that uses Top and Left properties of the chart object and copyPicture method of the chart object to get this done but it ends up being rather complex. I was wondering if there is simpler way

Thank

Shawn
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 461
Default Charts in copied worksheets

Shawn -

Are you copying a chart to a worksheet in another workbook? The chart
still points back to the sheet it came from. If the data is arranged the
same (same rows and columns, labels in the same place), copy the entire
sheet that contains the chart (so you have two sheets), then copy the
data from the new workbook, and use Paste Special - Values to get it
onto the sheet under the chart. The chart will update according to the
new data.

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Shawn wrote:
Hi

I'm attempting to copy a worksheet from one workboo to antoher and
than have the data as values in the new workbook including charts. I
can use

With ActiveSheet.UsedRange .Value = .Value End With

to turn all cells into values. The problem is with chart data
sources. They stay as links to the source workbook and every time I
open the new workbook it asks for link refresh.

Is there a way of eliminating this programmatically and keeping chart
appearance unchanged at the same time (almost like treating charts as
pictures)?

Thanks

Shawn


  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 4
Default Charts in copied worksheets

H

First of all thanks for all the help

What I'm attempting to do is gather worksheets from various workbooks into one final workbook. What Jon suggested would work fine if the data is on the same worksheet as the chart or if I want it to be at the end. The problem is that I don't want it to be because in the final workbook each worksheet ends up being a page of a large report. This is a final stage of my Excel reporting engine project

By the sounds of it looks like chart.CopyPicture approach and than paste and reposition in the new workbook is the only way

Thank

Shawn
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
I copied a file and now charts will not display. Sipakeha Charts and Charting in Excel 0 February 10th 10 09:11 PM
Anti-alising in copied charts Posterizer Charts and Charting in Excel 2 June 24th 08 02:30 AM
Identifying copied charts on a worksheet ragtopcaddy via OfficeKB.com Charts and Charting in Excel 1 February 23rd 08 01:58 AM
Named-range source-data for pie charts on copied worksheets [email protected] Charts and Charting in Excel 4 March 19th 07 05:50 AM
Copied Charts Aurora Charts and Charting in Excel 1 March 11th 05 02:06 AM


All times are GMT +1. The time now is 02:08 PM.

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

About Us

"It's about Microsoft Excel"