Excel VBA Bubble Chart bubble chart transparency

lochlan

New Member
Joined
Apr 15, 2011
Messages
7
I have created an bubble chart in excel 2007. I would like to make the bubbles 50% transparent using vba. I know how to do it manually and I have tried recording the macro while doing it. Strange enough, the macro is empty. Since it actually is possible to change the transparency of the bubbles, there should be a way to achieve the same result in vba. Does anyone know how? Thanks for your help in advance!

Bryan

ps. I have already tried:
Sub a()
Workbooks("book").Worksheets("sheet").ChartObjects("chart").Activate
ActiveChart.SeriesCollection(2).Format.Fill.Transparency = 0.5
End Sub
It runs, but nothing happens.
 

Excel Facts

Why does 9 mean SUM in SUBTOTAL?
It is because Sum is the 9th alphabetically in Average, Count, CountA, Max, Min, Product, StDev.S, StDev.P, Sum, VAR.S, VAR.P.
Try

Code:
Sub a()
    with Workbooks("book").Worksheets("sheet").ChartObjects("chart").Chart
        with .SeriesCollection(2).Format.Fill
            .Solid
            .Transparency = 0.5
        end with
    End with
End Sub
 
Upvote 0

Forum statistics

Threads
1,224,602
Messages
6,179,845
Members
452,948
Latest member
UsmanAli786

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