F
Fredrik E. Nilsen
Hi,
I'm programming an add-in in VBA. The add-in loads a toolbar with
buttons to control fill- and line-colours of shapes in a presentation.
The toolbar and buttons works perfectly but there is one problem:
If a user formats a placeholder and wants to reset it, the user has to
perform several actions. I want to include a button to reset the
placeholder to standard settings for text placeholders. That means
there should be no background and no line. I can set it to
fill.visible = msoFalse but that just makes the background invisible,
it doesn't actually remove it. With remove I mean the same setting as
if would use No fill from the Format shape dialogue.
If I try to record a macro it gives me this code:
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoFalse
.Fill.Solid
.Fill.Transparency = 0#
End With
End Sub
When I try to run this code on my already formatted shapes, it doesn't
remove the background at all.
Any suggestions?
I'm programming an add-in in VBA. The add-in loads a toolbar with
buttons to control fill- and line-colours of shapes in a presentation.
The toolbar and buttons works perfectly but there is one problem:
If a user formats a placeholder and wants to reset it, the user has to
perform several actions. I want to include a button to reset the
placeholder to standard settings for text placeholders. That means
there should be no background and no line. I can set it to
fill.visible = msoFalse but that just makes the background invisible,
it doesn't actually remove it. With remove I mean the same setting as
if would use No fill from the Format shape dialogue.
If I try to record a macro it gives me this code:
With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoFalse
.Fill.Solid
.Fill.Transparency = 0#
End With
End Sub
When I try to run this code on my already formatted shapes, it doesn't
remove the background at all.
Any suggestions?