Object doesn't support this property or method --- ChartObject and seriesCollection

hrjohnson

New Member
Joined
Jan 28, 2014
Messages
24
Hello,

I have multiple charts embedded on a worksheet and I want to color every series point so they all look the same.
This is my sub:
Code:
Sub uniformChart()
Dim mapChart As ChartObject
Dim objSeries As Series
   For Each mapChart In ActiveWorkbook.Sheets("Home").ChartObjects
    With mapChart
         For Each objSeries In .SeriesCollection
            With objSeries
                                .MarkerStyle = xlMarkerStyleSquare
                                .Format.Fill.Solid
                                .MarkerBackgroundColor = RGB(51, 204, 204)
                                .MarkerSize = 6
    
            End With
         Next
    End With
  Next
End Sub

I get the error "Object Doesn't support this Property or Method" and it highlights "For Each objSeries In .SeriesCollection" line. I'm confused, I though Series Collection was a method of ChartObject?
 

Excel Facts

Show numbers in thousands?
Use a custom number format of #,##0,K. Each comma after the final 0 will divide the displayed number by another thousand
A ChartObject is actually the container for an embedded Chart. You need to use:
Rich (BB code):
With mapChart.Chart
 
Upvote 0
Glad to help. :)
 
Upvote 0

Forum statistics

Threads
1,214,653
Messages
6,120,750
Members
448,989
Latest member
mariah3

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top