Tile

J

John

is there a way to probmatically detemine if the textbox is the place
holder for "title" on the master. Also is there a way to
probematically determine if a textbox is multiple lines and if so how
many lines. (I am attempting to reformat a slide presentation to "wide
format"
 
S

Steve Rindsberg

is there a way to probmatically detemine if the textbox is the place
holder for "title" on the master. Also is there a way to
probematically determine if a textbox is multiple lines and if so how
many lines. (I am attempting to reformat a slide presentation to "wide
format"

Sounds like Powerpoint (it's a good idea to say so though).

This example will show you how to get at the slide's title:

Export Slide Number and Title Text to a text file
http://www.pptfaq.com/FAQ00332.htm

And assuming you've got a text box selected, this will give you number of lines
and paragraphs:

With ActiveWindow.Selection.ShapeRange(1)
With .TextFrame
Debug.Print .TextRange.Lines.Count
Debug.Print .TextRange.Paragraphs.Count
End With
End With
 
J

John

THANX (X2)
Sounds like Powerpoint (it's a good idea to say so though).

This example will show you how to get at the slide's title:

Export Slide Number and Title Text to a text file
http://www.pptfaq.com/FAQ00332.htm

And assuming you've got a text box selected, this will give you number of lines
and paragraphs:

With ActiveWindow.Selection.ShapeRange(1)
With .TextFrame
Debug.Print .TextRange.Lines.Count
Debug.Print .TextRange.Paragraphs.Count
End With
End With
 

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