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

Hello, let me give a little background first. I'm updating
an excel spreadsheet that goes by fiscal quarters. I have
the user enter his start quarter and end quarter and then
I want to have a graph automatically update for the user's
entered data range. I have been trying to use the
SeriesCollection, .Values and .Formula to be more
specific. However, every time I try to set SeriesCollection
(1).Values or SeriesCollection(1).Formula equal to
something, I get a 1004 runtime error. It says "Unable to
set the Values property of the Series class." What data
type are .Values and .Formula supposed to be? Right now,
mine are strings that, in excel, would be formulas when
entered into a cell. Does anyone know any other way to
change the data in an individual series in a graph? Any
help would be appreciated. Thanks!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 70
Default SeriesCollection

The series formula must be a formula that properly references the values
and xvalues as either an array or a worksheet range. If you want to
produce a function, you must first create a defined range name that
holds the values of the function, then use this defined name in the
series formula.

The values and xvalues of a series also must refer to arrays or
worksheet ranges.

You might first want to refer to Stephen Bullen's non-VBA technique for
plotting a formula. The defined names contain the X and Y values, as
arrays, and these are referred to in the series formula.

http://bmsltd.ie/DLCount/DLCount.asp?file=ChtFrmla.zip

- Jon
-------
Jon Peltier, Microsoft Excel MVP
Peltier Technical Services
Tutorials and Custom Solutions
http://PeltierTech.com/
_______

Varun wrote:
Hello, let me give a little background first. I'm updating
an excel spreadsheet that goes by fiscal quarters. I have
the user enter his start quarter and end quarter and then
I want to have a graph automatically update for the user's
entered data range. I have been trying to use the
SeriesCollection, .Values and .Formula to be more
specific. However, every time I try to set SeriesCollection
(1).Values or SeriesCollection(1).Formula equal to
something, I get a 1004 runtime error. It says "Unable to
set the Values property of the Series class." What data
type are .Values and .Formula supposed to be? Right now,
mine are strings that, in excel, would be formulas when
entered into a cell. Does anyone know any other way to
change the data in an individual series in a graph? Any
help would be appreciated. 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
.SeriesCollection(2).Name and .Deselect Peter Sie Charts and Charting in Excel 2 July 3rd 06 03:10 AM
VBA- SeriesCollection(1).Value error crossplatform Excel Programming 3 April 12th 04 04:27 PM
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 05:31 PM.

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"