Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default Range type of question

Hi All!

I am updating some code and need to figure a way to change the code to
something different from the .Range("B1") way. I have at least 2 different
data series that are going to be ploted this way. This is what I have and
would like to change it to something like the 2nd example below

ActiveChart.SeriesCollection(1).XValues = Sheets(1).Range("C2:C10001")
ActiveChart.SeriesCollection(1).Values = Sheets(1).Range("Cr2:Cr10001")
ActiveChart.SeriesCollection(1).Name = Sheets(1).Range("cr1")

ActiveChart.SeriesCollection(1).XValues =
Sheets(1).Range(2,ColIndex:LastRow,ColIndex)

I tried to use the Cells command but with very little luck

Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Range type of question

With Sheets(1)
ActiveChart.SeriesCollection(1).XValues = _
..Range(.Cells(2,ColIndex),.Cells(LastRow,ColIndex ))
End with

--
Regards,
Tom Ogilvy

"Ben H" wrote in message
...
Hi All!

I am updating some code and need to figure a way to change the code to
something different from the .Range("B1") way. I have at least 2

different
data series that are going to be ploted this way. This is what I have and
would like to change it to something like the 2nd example below

ActiveChart.SeriesCollection(1).XValues = Sheets(1).Range("C2:C10001")
ActiveChart.SeriesCollection(1).Values =

Sheets(1).Range("Cr2:Cr10001")
ActiveChart.SeriesCollection(1).Name = Sheets(1).Range("cr1")

ActiveChart.SeriesCollection(1).XValues =
Sheets(1).Range(2,ColIndex:LastRow,ColIndex)

I tried to use the Cells command but with very little luck

Thanks!



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
Type A Question MGP31 New Users to Excel 4 February 6th 07 12:36 PM
Type a Question for Help MGP31 Excel Discussion (Misc queries) 2 February 4th 07 09:44 AM
how get rid of "Type a question for help" box Ian Elliott Excel Discussion (Misc queries) 2 September 28th 05 06:01 PM
Sum if type question? Dan Excel Worksheet Functions 3 May 28th 05 04:34 AM
VBA question - Type Mismatch ajliaks[_10_] Excel Programming 12 April 22nd 04 01:40 AM


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