LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 718
Default adding data to a chart

Sounds like k = 0
HTH
--
AP

"inquirer" a écrit dans le message de
u...
I am trying to add a data series to an existing chart.

I have defined k in the program and want to select cols k+7 and k+2 as
the data form the sheet "Data" to add to the chart.

I have:

ActiveChart.SeriesCollection(2).Values = "=Data!R2C" & k + 7 & ":R24C" &
k + 7

ActiveChart.SeriesCollection(2).XValues = "=Data!R2C" & k + 2 & ":R24C"
& k + 2

but this does not select the right data - it actually selects data
G2:g24 and b2:b24.

Could someone tell me the correct syntax please or the correct way to do

it?

Thanks

Chris

Chris



 
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
Adding data that is not graphed to chart mellermj Charts and Charting in Excel 1 March 10th 09 03:13 PM
Adding extra data to a chart Tracey Charts and Charting in Excel 1 June 9th 08 10:58 PM
adding data to chart lisa721 Charts and Charting in Excel 3 April 11th 07 11:30 PM
adding data to chart Ian Excel Discussion (Misc queries) 3 November 10th 06 06:46 PM
Adding Data Information to a Chart Mike M Charts and Charting in Excel 4 December 17th 05 12:12 AM


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