We help IT Professionals succeed at work.
Get Started

Trouble setting marker properties in chart through VBA

ASEuser asked
Last Modified: 2012-05-09
I am trying to control the marker properties in an excel chart, with each point in a single series taking on different properties.  However, it is choosing to ignore most of the settings that I tell it to use.  For example,  I have a scatter chart with a single point plotted on it.  Using the following code snippet, I can change color and size of the marker, but the style will not change.  When I query the proerties of the individual point, either through vba or the excel format window, it shows all values at automatic (as opposed to what I set, and what I see on the chart).  Why will the style not change to circle, and why do the property queries not match what I see or set?
very frustrated and confused....

    For Each bubble In Charts(1).SeriesCollection(1).Points
            With bubble
                .MarkerStyle = 8
                .MarkerForegroundColor = RGB(0, 0, 0)
                .MarkerBackgroundColorIndex = 8
                .MarkerSize = 52
            End With
    Next bubble

print charts(1).seriesCollection(1).points(1).markerstyle
Watch Question
Most Valuable Expert 2011
Awarded 2010
This problem has been solved!
Unlock 1 Answer and 4 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE