Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Creating a chart then unlinking it from data?

Status
Not open for further replies.

daveh

Technical User
Jun 22, 2000
57
GB
Hi,

I am creating a chart based on some information on a worksheet, and then want the chart to remain as it is, even if it alter (or even delete) the data from which it was created. Obviously I could copy and paste the chart into a different application, making sure I don't link it, but what I was really hoping to do was to create the chart within excel, and then for it to be de-linked, as it were!

The chart is created using a macro, so I can obvioulsy use any vba code that may be able to do this upon chart creation.

Thanks in advance,
David.
 
Hi,

Just modify you code to assign an array of values to each series rather than assigning to a range.

Please post the code.

Skip,

[glasses] [red]Be advised:[/red] Researchers have found another Descartes trueism, "Cogito ergo spud."
"I think; therefore, I YAM!
[tongue]
 
You could copy the chart as a picture, delete the chart and then paste the picture.

Select the chart, and then
Code:
ActiveChart.CopyPicture Appearance:=xlScreen, Size:=xlScreen, Format:= xlPicture
...and then paste it where you want, and delete the original.

However you will no longer be able to edit any aspects of the chart.

Andy.

-------
I am not responsible for any "Sponsored Links" which may appear in my messages.
 
OK I think I'll try the last solution, this seems to be the best way to do things. Thanks everyone for your help - I may also try the array of values idea too!

Dave
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top