LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Decoupling the source of a Chart


Hi,
I have come across a wierd problem. I have a macro in excel which
generates charts after reading from various excel sheets. So i am
running a loop to read the excel file name and then generate the chart.


To generate the chart, I set the source of the chart to the read excel
file like this:

ActiveChart.SetSourceData Source:=Sheets("Sheet1").Range("F1:G1486"),
PlotBy _
:=xlColumns

Now, this works correct. But now, in the same range of sheet1, i copy
some other data and try to genarate a chart from the new data. But
because i have set the source of the previous chart to the same range,
that chart changes as well.

So is there some way to stop that chart from changing or decoupling the
chart from that range of data. Because i dont want to create a new data
sheet for every chart i make.

Please do let me know,
Thanks,
Snigdha


--
snigdha
------------------------------------------------------------------------
snigdha's Profile: http://www.excelforum.com/member.php...o&userid=27370
View this thread: http://www.excelforum.com/showthread...hreadid=468844

 
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
Chart Source Data Scott R Excel Worksheet Functions 2 November 30th 07 03:44 AM
pie chart & column chart w/same source data martymi Charts and Charting in Excel 2 May 1st 07 04:25 PM
How do you link chart source data when you copy the chart? mamagirl Charts and Charting in Excel 1 December 8th 06 02:40 AM
Decoupling cells and formulae Henrik Excel Discussion (Misc queries) 3 September 1st 06 07:30 PM
Chart Source References Nick hfrupn Charts and Charting in Excel 1 May 9th 05 09:02 AM


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

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"