Setting a shape background fill color

X

xargon

Hi,

I was trying to change a shape's background fill color as follows:

If Shape.CellExists("FillBkgnd", 0) Then
Shape.Cells("FillBkgnd") = RGB(255, 0, 0)
End If

I verified that the above code is executed but it does not change the
shape background to red as expected. Am I missing something here?

Cheers!
xargon
 
M

Markus Breugst

Hi,

the background color only appears if you are using a fill pattern with two
colors. The primary fill color of a shape is its foreground color. So, just
try your code with "FillForegnd" instead of "FillBkgnd".

Best regards,
Markus
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top