Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Fill property in macro for PPT 2007

Status
Not open for further replies.
Jul 21, 2009
29
US
I am trying to make a text box have no fill, using a macro in PowerPoint 2007.

I went to an XP version of PowerPoint and recorded a macro to do this. The code it created was:

With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoTrue
.Fill.Solid
.Fill.ForeColor.SchemeColor = ppFill
.Fill.Transparency = 0#
End With

This code works fine in a macro in the XP version of PowerPoint, but does not work in PowerPoint 2007. It returns a solid white fill with no transparency.

Does anyone know what code will work in VBA (a macro) in PowerPoint 2007 to give a text box no fill at all?
 
I made a mistake in my posting. The code I posted returned a fill on purpose. The code generated to remove the fill was:

With ActiveWindow.Selection.ShapeRange
.Fill.Visible = msoFalse
.Fill.Solid
.Fill.Transparency = 0#
End With
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top