Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General PowerPoint Questions / July 2008

Tip: Looking for answers? Try searching our database.

different text place holders

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Edward - 24 Jul 2008 20:57 GMT
Hi everybody,
IS there any difference between textplaceholder,title placeholder and
textbox when we use VBA if yes what are the keywords for each of them in VBA?
( how do I refer to a text box vs. a title placeholder)
Signature

Best regards,
Edward

Steve Rindsberg - 24 Jul 2008 22:08 GMT
> Hi everybody,
> IS there any difference between textplaceholder,title placeholder and
> textbox when we use VBA if yes what are the keywords for each of them in VBA?
> ( how do I refer to a text box vs. a title placeholder)

There are some differences, yes, but at the same time, each is a shape with a
text range and so on, so depending on what you're trying to do, you might be
able to treat them identically.

What exactly do you need to accomplish?

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
Live and in personable in the Help Center at PowerPoint Live
Sept 21-24, San Diego CA, USA
www.pptlive.com
Edward - 24 Jul 2008 22:44 GMT
Thanks Steve. For example I want to make a TOC table based on Title
placeholders so I need a way to distinguish between titleplaceholder and
other type of text holders , or I want to have a macro to apply a certain
font style to all the textes in text placeholders ( not titles ) and so on...
basically when I loop through all the shapes I need to tell which shape os
title or text or textbox .
Thanks for your help again.
Signature

Best regards,
Edward

> > Hi everybody,
> > IS there any difference between textplaceholder,title placeholder and
[quoted text clipped - 15 lines]
> Sept 21-24, San Diego CA, USA
> www.pptlive.com
Steve Rindsberg - 25 Jul 2008 17:03 GMT
> Thanks Steve. For example I want to make a TOC table based on Title
> placeholders so I need a way to distinguish between titleplaceholder and
> other type of text holders ,

This'll give you the title:

Function GetTitle(oSld As Slide) As Shape
' return the title for oSld if any

   Dim oSh As Shape
   
   For Each oSh In oSld.Shapes
       If oSh.Type = msoPlaceholder Then
           If oSh.PlaceholderFormat.Type = ppPlaceholderTitle _
           Or oSh.PlaceholderFormat.Type = ppPlaceholderCenterTitle Then
               ' it's a title
               Set GetTitle = oSh
           End If
       End If
   Next

End Function

So:

Dim oSl as Slide
Dim oSh as Shape

For each oSl in ActivePresentation.Slide
  Set oSh = GetTitle(oSl)
  If Not oSh = Nothing Then
      ' do your stuff with oSh
  End if
Next

Modify GetTitle with slightly different tests and you have GetBodyText and so
on.

> or I want to have a macro to apply a certain
> font style to all the textes in text placeholders ( not titles ) and so on...
> basically when I loop through all the shapes I need to tell which shape os
> title or text or textbox .
> Thanks for your help again.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
Live and in personable in the Help Center at PowerPoint Live
Sept 21-24, San Diego CA, USA
www.pptlive.com
Edward - 25 Jul 2008 18:02 GMT
Thanks Steve. I will work on your code on weekend . Thanks a lot a again:)
Signature

Best regards,
Edward

> > Thanks Steve. For example I want to make a TOC table based on Title
> > placeholders so I need a way to distinguish between titleplaceholder and
[quoted text clipped - 48 lines]
> Sept 21-24, San Diego CA, USA
> www.pptlive.com
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.