Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
sorry to be bugging the group so mych about charts but Im getting my
butt kicked. The new problem is this: Building a column chart and needing to add the series x axis labels which are set in VBA with ..SeriesCollection(#).XValues for each series. I need to set them all to a named range(the same range of cells) Im working with: some code removed for clearity) Dim aChart As Chart Dim shtNm As String shtNm = ActiveSheet.Name Set aChart = Charts.Add Set aChart = aChart.Location(Whe=xlLocationAsObject, Name:=shtNm) Dim xSer As SeriesCollection For Each xSer In aChart .XValues = Range("code") Next I can set each series individuly but I need to set them as one because the number of series is variable and can change each time the macro runs. The named range "CODE" is always the correct size to match the number in the series. is there a way to make this work? Thanks Robert |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Series Collection Name Problem | Excel Programming | |||
Series collection pb on Ecxel 2003 chart | Excel Programming | |||
Use "For... Each" to Iterate Through a Cells Collection? | Excel Programming | |||
Series Collection Points | Excel Programming | |||
Iterate over Collection Objects in Container. | Excel Programming |