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

Can I create an array and assign it to a SeriesCollection of a chart
without that array coming from a range of cells, but as the result of
array operations?

Stephen

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default Possible to assign an array to a SeriesCollection

Use a sheet name and set the refernce for that name to be ={your array
operations here}

/Lars Hammarberg
www.camako.se

"Stephen Boulet" wrote in message
...
Can I create an array and assign it to a SeriesCollection of a chart
without that array coming from a range of cells, but as the result of
array operations?

Stephen



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 90
Default Possible to assign an array to a SeriesCollection

Stephen -

In VBA:

ActiveChart.SeriesCollection(1).Values = Array(3,2,1)

or

Sub AssignArray()
Dim i As Integer
Dim myVals(1 To 5) As Double
For i = 1 To 5
myVals(i) = 7 - i
Next
ActiveChart.SeriesCollection(1).Values = myVals
End Sub


- Jon
-------
Jon Peltier, Microsoft Excel MVP
http://www.geocities.com/jonpeltier/Excel/index.html
_______

Stephen Boulet wrote:

Can I create an array and assign it to a SeriesCollection of a chart
without that array coming from a range of cells, but as the result of
array operations?

Stephen


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 question EAB1977 Charts and Charting in Excel 2 December 22nd 08 02:29 PM
Assign Values to array Jeff Excel Discussion (Misc queries) 14 July 15th 08 06:06 PM
Assign data to chart series, using array Stratuser[_2_] Excel Programming 1 July 24th 03 06:52 PM
how to assign ranges on different sheets to an array KRCowen Excel Programming 0 July 22nd 03 02:46 AM
how to assign ranges on different sheets to an array KRCowen Excel Programming 2 July 21st 03 03:27 AM


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