Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Noob Question Probably! :S

hi all sorry if this is a stupid question!

i am basically trying to make a macro so that as enter one row of data into
a spread sheet a graph will increase the data series in that range by 1. for
example so that as i enter the data on a daily basis it updates the graph:


ActiveChart.SeriesCollection(1).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(1).Values = "='LI DB'!R8C18:R100C18"
ActiveChart.SeriesCollection(2).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(2).Values = "='LI DB'!R8C9:R100C9"
ActiveChart.SeriesCollection(3).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(3).Values = "='LI DB'!R8C10:R100C10"

this is what ive got so far i guess i just need to workout what i need to do
to get the '100' part to '101' then '102' then '103' everytime i run the
macro.

im really sorry if im about as clear as mud, but any help is much
appreciated!

many thanks

LH
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 45
Default Noob Question Probably! :S

You don't need code to do this. Have a look at Jon Peltier's article about
dynamic named ranges in charts.

http://pubs.logicalexpressions.com/p...cle.asp?ID=518

--
Robin Hammond
www.enhanceddatasystems.com


"LHUK" wrote in message
...
hi all sorry if this is a stupid question!

i am basically trying to make a macro so that as enter one row of data
into
a spread sheet a graph will increase the data series in that range by 1.
for
example so that as i enter the data on a daily basis it updates the graph:


ActiveChart.SeriesCollection(1).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(1).Values = "='LI DB'!R8C18:R100C18"
ActiveChart.SeriesCollection(2).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(2).Values = "='LI DB'!R8C9:R100C9"
ActiveChart.SeriesCollection(3).XValues = "='LI DB'!R8C1:R100C1"
ActiveChart.SeriesCollection(3).Values = "='LI DB'!R8C10:R100C10"

this is what ive got so far i guess i just need to workout what i need to
do
to get the '100' part to '101' then '102' then '103' everytime i run the
macro.

im really sorry if im about as clear as mud, but any help is much
appreciated!

many thanks

LH



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
Noob question letmeplay1977 Excel Worksheet Functions 2 October 5th 05 09:27 PM
Noob question Micro_pal New Users to Excel 2 September 4th 05 02:37 PM
Noob question Micro_pal Excel Discussion (Misc queries) 5 September 3rd 05 01:42 AM
nOOb formulas question patrick Excel Discussion (Misc queries) 1 March 8th 05 02:42 PM
Noob question - Worksheet_Change Rich Wallace Excel Programming 3 May 14th 04 07:53 PM


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