Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA- SeriesCollection(1).Value error

What's wrong with this code:


Worksheets("sheet1").ChartObjects("Chart 1").Chart. _
SeriesCollection(1).Value = "=Sheet1!R1C1:R20C1"


It gives me run-time error '438' object doesn't support this propert
or method

--
Message posted from http://www.ExcelForum.com

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default VBA- SeriesCollection(1).Value error

"crossplatform " wrote in
message ...
What's wrong with this code:


Worksheets("sheet1").ChartObjects("Chart 1").Chart. _
SeriesCollection(1).Value = "=Sheet1!R1C1:R20C1"


It gives me run-time error '438' object doesn't support this property
or method.


---
Message posted from http://www.ExcelForum.com/


value is not a valid property of SeriesCollection. what exactly are you
trying to do; add a new series or replace an existing series or something
else?
Paul D


  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default VBA- SeriesCollection(1).Value error

Worksheets("sheet1").ChartObjects("Char
1").Chart.SeriesCollection(1).Value = "=Sheet1!R1C1:R20C1"




Well, I'm trying to update the chart's series range. The followin
works perfectly:


ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R1C1:R20C1"

But I dont want to activate the sheet and the chart :(
Any suggestion

--
Message posted from http://www.ExcelForum.com

  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 38
Default VBA- SeriesCollection(1).Value error

have you tried using the formula property?
Paul D

"crossplatform " wrote in
message ...
Worksheets("sheet1").ChartObjects("Chart
1").Chart.SeriesCollection(1).Value = "=Sheet1!R1C1:R20C1"




Well, I'm trying to update the chart's series range. The following
works perfectly:


ActiveSheet.ChartObjects("Chart 1").Activate
ActiveChart.SeriesCollection(1).Values = "=Sheet1!R1C1:R20C1"

But I dont want to activate the sheet and the chart :(
Any suggestion?


---
Message posted from http://www.ExcelForum.com/



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
Unable to get SeriesCollection runtime error Kate Charts and Charting in Excel 3 March 7th 07 02:41 AM
Help: runtime error - Method seriescollection object_chart failed huangx06 Charts and Charting in Excel 3 July 9th 05 12:27 AM
VBA- SeriesCollection yusoon[_3_] Excel Programming 1 April 8th 04 10:38 AM
calliing seriescollection by name R.VENKATARAMAN Excel Programming 2 January 14th 04 07:15 AM
calling seriescollection by name R.VENKATARAMAN Excel Programming 2 January 13th 04 01:29 PM


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