AutoFit through VBA

J

James

Hi

Is there a means to access the AutoFit behaviour from VBA in PowerPoint 2003?

I'm adding a number of links using:


sldCurrent.Shapes.Placeholders(2).TextFrame.TextRange.Paragraphs(intLinkOnSlide).Text = strLessonArray(intCurrentLink, 2) & Chr(13)

sldCurrent.Shapes.Placeholders(2).TextFrame.TextRange.ParagraphFormat.Bullet.Visible = False
With
sldCurrent.Shapes.Placeholders(2).TextFrame.TextRange.Paragraphs(intLinkOnSlide).ActionSettings(ppMouseClick)
.Action = ppActionHyperlink
.Hyperlink.Address = "modules/" & strLessonArray(intCurrentLink, 1)
& ".ppt"
End With

This works fine but if there are too many lines, the text runs off the
bottom of the placeholder. I couldn't find a way either to confirm that the
relevant AutoCorrect options are activated or to change an AutoFit property
on the placeholder or text frame object. Nothing gets recorded if you make a
macro of changing the AutoFormat As You Type options or the AutoFit Options
smart tag results in a blank, but if anyone has any ideas...

Thanks
 

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