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 Chriss Miller 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
Joined
Nov 14, 2002
Messages
155
Location
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
 
Have you tried

.Font.Color = vbWhite
 
That will not work. Color is a PowerPoint.ColorFormat type.
 
How bout

.Color.RGB = RGB(0, 0, 255255255)
 
How bout

.Color.RGB = RGB(0, 0, 255255255)
 
.Color.RGB = RGB(255,255,255) WORKED! Thankyou very much!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top