2003 > 2007 Formatting Problems

G

George

Hi

I have wrote a little program which adds
a new slide and then formatting a text
element on it (bold, yellow). This workes
fine in ppt 2003. But in ppt 2007 the
background of the text frame is now black,
the font *not* bold and the color of the
font ist black.

Can anybody help me (see the used code
below).

Many thanks for help

Best Regards, George

--------------------------------

With ActiveWindow.Selection.TextRange.ParagraphFormat
.LineRuleWithin = msoTrue
.SpaceWithin = 1
.LineRuleBefore = msoTrue
.SpaceBefore = 0
.LineRuleAfter = msoTrue
.SpaceAfter = 0
End With

With ActiveWindow.Selection.TextRange
.ParagraphFormat.Alignment = ppAlignLeft
With .Font
.Name = "Arial Narrow"
.Size = 25
.Bold = msoTrue
.Italic = msoFalse
.Underline = msoFalse
.Shadow = msoFalse
.Emboss = msoFalse
.BaselineOffset = 0
.AutoRotateNumbers = msoFalse
.Color.SchemeColor = ppForeground
.Color.RGB = RGB(Red:=247, Green:=181, Blue:=18)
End With
End With

With ActiveWindow.Selection.ShapeRange
.Fill.Transparency = 0#
.TextFrame.MarginLeft = 0#
.TextFrame.MarginRight = 0#
.TextFrame.MarginTop = 0#
.TextFrame.MarginBottom = 0#
End With
 
G

George

Dear John

Thanks for your answer.

When I collected the code for a new
request, I have found out, that the textframe
was not selected, when executing the
formating (in ppt 2003 it worked ...).

I was able to fix the problem myself.
Many thanks for your help.

Best Regards, George
 

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