IAVENOIDEAWHAIMDOIN
Active Member
- Joined
- Nov 12, 2004
- Messages
- 291
Hi!
I've got a string of values, it looks like this...
MyStr = "0.001, 0.003, 0.001, 0.004" ...etc.
In all it contains around 800 numbers.
What I want to do with this string is to make the numbers into Y values for a new series in an existing chart. The code I'm working with at the moment is like this...
Can I convert my string into an array to input the values as it recommends in the VBE help file on the Values property? Or is there another way I can achieve the same thing?
I would really appreciate any help on this one,
Cheers, Martin
I've got a string of values, it looks like this...
MyStr = "0.001, 0.003, 0.001, 0.004" ...etc.
In all it contains around 800 numbers.
What I want to do with this string is to make the numbers into Y values for a new series in an existing chart. The code I'm working with at the moment is like this...
Code:
Worksheets(ShtName).ChartObjects(1).Select
ActiveChart.SeriesCollection.NewSeries
With ActiveChart.SeriesCollection(LastSeries + 1)
.XValues = "=Results!R2C1:R846C1
.Values = "={" & MyStr & "}"
End With
I would really appreciate any help on this one,
Cheers, Martin