okay...it works this way....have to activate the chart I guess. I am still trying to figure out how to find out how many series are in the chart object. That way, I can modify, add or delete as necessary to properly size it....any thoughts?
Worksheets("HYReport").Cha
ActiveChart.ChartArea.Sele
With ActiveChart
n = 1
For m = 1 To wtOptions
If wts(m, 1) > 0 Then
.SeriesCollection.NewSerie
.SeriesCollection(n).Name = "=HYReport!R70C" & 68 + m & ":R70C" & 68 + m
.SeriesCollection(n).Value
n = n + 1
End If
Next m
End With
Main Topics
Browse All Topics





by: samsoroPosted on 2004-06-18 at 12:58:28ID: 11348000
This has been bugging me, so I tried creating a simple worksheet with an existing range and then attempting to use VBA to name a subset of the range:
s(1, 1), .Cells(24, 1)).Name = "SubSet"
Private Sub
With Worksheets("Sheet1")
.Range("wholeRange")(.Cell
End With
End Sub
Instead of naming the specified range, it names a single cell, one up and one to the left the existing range. Is this a bug, or is my syntax screwed up?