Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default extending a chart with visual basic

I have a number of charts that need to be extended each day as a new
column of data is added daily. I know how to do this manually but it's
a pain so I want to automate this. Once I (manually) add the new
column of data I want to run a macro that will simply extend each data
source by the new column. I can see how to do this manually and I can
see how to use the SetSourceData method to change the data source but I
don't see what property/method I can use to get the current data source
in a text form (eg, r2c1:r4c20) so I can extend it. If I can get this
text form of the data source I could edit the text (-- r2c1:r4c21) and
use SetSourceData and I'll be in business.

Is there a property/method I can use to get this text form of the data
range? Or is there a better way to do this data range extension?

Denis

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6,582
Default extending a chart with visual basic

No need for VBA. You can set up dynamic ranges as the data source for each
series:

http://peltiertech.com/Excel/Charts/Dynamics.html

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


"Denis" wrote in message
oups.com...
I have a number of charts that need to be extended each day as a new
column of data is added daily. I know how to do this manually but it's
a pain so I want to automate this. Once I (manually) add the new
column of data I want to run a macro that will simply extend each data
source by the new column. I can see how to do this manually and I can
see how to use the SetSourceData method to change the data source but I
don't see what property/method I can use to get the current data source
in a text form (eg, r2c1:r4c20) so I can extend it. If I can get this
text form of the data source I could edit the text (-- r2c1:r4c21) and
use SetSourceData and I'll be in business.

Is there a property/method I can use to get this text form of the data
range? Or is there a better way to do this data range extension?

Denis



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
Is Visual Basic the same as Visual Studio 2008? Mike Stewart Excel Worksheet Functions 5 January 11th 09 04:58 PM
Make visual basic truely visual! GraphicalGuy Excel Programming 0 October 20th 06 05:53 PM
Can I run Visual Basic procedure using Excel Visual Basic editor? john.jacobs71[_2_] Excel Programming 3 December 26th 05 02:22 PM
changing the visual basic in office 2003 to visual studio net bigdaddy3 Excel Discussion (Misc queries) 1 September 13th 05 10:57 AM
visual basic & chart data labels LES Excel Programming 1 July 22nd 05 04:15 PM


All times are GMT +1. The time now is 04:00 AM.

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"