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 Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Automating Creation of PowerPoint Presentation

Status
Not open for further replies.

chadau

Programmer
Nov 14, 2002
155
US
I am trying to set my font color to white for a TextFrame object on a PowerPoint slide. The RGB code for white is 255 255 255. The RGB property of the TextFrame object's font is an integer type. What I have below does not return a white font color. Does anyone have an answer to this mystery?

With .Item(i).TextFrame.TextRange
.Font.Name = "Verdana"
.Font.Size = 36
.Font.Color.RGB = 255255255
.Font.Shadow = Office.MsoTriState.msoTrue
End With
 
That will not work. Color is a PowerPoint.ColorFormat type.
 
.Color.RGB = RGB(255,255,255) WORKED! Thankyou very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top