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: 3
Default manually specifing a range in the code below

see the code
i want to create a XY scatter chart, using data from
y-axis = data from column 1 - row 3 to row 11 an
x-axis = data from column 4 - row 3 to row 11

Charts.Ad
ActiveChart.ChartType = xlXYScatterSmoothNoMarker
ActiveChart.SeriesCollection(1).Delet
ActiveChart.SeriesCollection.NewSerie
ActiveChart.SeriesCollection.NewSerie
ActiveChart.SeriesCollection(1).XValues = "='Sheet1'!R3C4:R11C4
ActiveChart.SeriesCollection(1).Values = "='Sheet1'!R3C1:R11C1

but the no of rows can be variable, so how can i pass no of rows (like "from row 3 to row 12" or "from row 3 to row 15") to the proceedure. i just want to pass 11 or 12 or 15 or whatever, instead of saying "Sheet1'!R3C4:R11C4

Is there any way..pls hel

 
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
Specifing Cells to Sum on Condition phuser[_2_] Excel Worksheet Functions 2 June 24th 08 11:39 PM
specifing colors in an excel chart keith Charts and Charting in Excel 2 May 28th 06 05:02 AM
Manually reseting the used cell range Woody13 Excel Discussion (Misc queries) 2 January 26th 06 09:10 PM
Manually Setting Date/Time Range of Axis pittpanther Charts and Charting in Excel 1 September 20th 05 03:54 AM
specifing default folder with GetOpenFilename Brian Excel Programming 3 September 8th 03 01:55 PM


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