Detecting placeholders in vba


    Sponsored Links


  • 1. how do i make an organized directory listing on my computer?
    I need to organize my directory on my desktop in such a way that it becomes almost like having a roll type directory with tabs in alphabetical order. Pls advise me.Thanks
  • 2. PowerPoint: How to make slides automatically run upon opening fil.
    I am trying to make a slide show in PowerPoint run automatically when the file is opened. I am also interested in having this happen when the file is in SharePoint.
  • 3. need a "newspaper frontpage type of template" for powerpoint
    Hi i am doing a contest introducing a new promo in my office and i would like to create a template on powerpoint that will look a newpaper, can anybody help me?
  • 4. Desktop wallpaper?
    When I receive a PP presentation slide-show attached to an e-mail can I set one of the slides as desktop background wallpaper? I just have the viewer. Thanks, Fred
  • 5. Can you automatically return from a linked ppt file?
    We're using PowerPoint 2003. I have a ppt file that links to several other files. I would like each of the linked files to automatically return to the main ppt after their last slide (in stead of getting the black screen and pressing <Enter> to return. I have several other people that prepare their own linked file. They are not too PowerPoint savey. I was hoping for some kind of auto-close macro that I could copy into each of their files. How can I do this? Also, it seems that hidden slides in the linked file have to be moved after the non-hidden slides. For example, if slide 2 is hidden but slide 3 is not, then PowerPoint will still show slide 2. However, if I move it after the last non-hidden slide it won't show it. Thanks, Jim

Re: Detecting placeholders in vba

Postby Steve Rindsberg » Fri, 24 Oct 2008 00:47:36 GMT

In article < XXXX@XXXXX.COM >, NabilShuh 

Yes.  PPT allows you to apply a Tag (many, if you like) to most any shape or 
slide in a presentation, and to the presentation itself.

VBA help should get you started.  Also have a look here:

Working with Tags (and a bit about Functions)

Steve Rindsberg, PPT MVP

Detecting placeholders in vba

Postby TmFiaWxTaHVo » Fri, 24 Oct 2008 01:54:01 GMT

I have created a number of placeholders in my master layout (e.g. footnotes, 
subtitle etc). These are standard text placeholders. What I need to do is 
detect what they are programatically so that I can auto populate them. When 
creating them is there a way I can tag them in any way within the template? 


RE: Detecting placeholders in vba

Postby RWR3YXJk » Fri, 24 Oct 2008 05:26:13 GMT

In addition to what Steve suggested, you can use shape numebrs. You can write 
a simple code and fine each shape number in your masters and then use those 
shape numebrs in your code.
something like
ActivePresentation.Slides(1).Design.SlideMaster.Shapes(4).TextFrame.TextRange.Text=" your text"
Just rememeber shape numebrs is masters are not   necessarily the same as 
shape numebrs on slides, so you have to make sure you are reffering to each 
shape in slide masters or in slide object.
Also you can refer to some shapes with a special name in VBA for eample 
 ActivePresentation.Slides(1).Design.SlideMaster.Shapes.Title ......
which refers to title place holder.
Best regards,

Re: Detecting placeholders in vba

Postby Steve Rindsberg » Fri, 24 Oct 2008 20:10:44 GMT

As long as you're *absolutely* certain that nobody will ever add or remove shapes from the 
master, using the numbers might be safe.  Might be.  I wouldn't trust it though. 

But as soon as you add a shape to a slide or master and send it to back, every one of your shape 
numbers changes and any code that relies on it just died.  Oooooops.  ;-)

Steve Rindsberg, PPT MVP

Re: Detecting placeholders in vba

Postby TmFiaWxTaHVo » Sat, 25 Oct 2008 01:54:07 GMT

Yes the numbers way did the job. Thanks

Similar Threads:

1.How to detect embedded EXEs and vba macros?

Programmatically how can I detect through PowerPoint automation, if any 
macros or EXEs are present in a presentation?


2.E In VBA How can I detect slide switching

3.EIn VBA How can I detect slide switching

4.VBA - Detecting mouse click on hyperlink

5.In VBA How can I detect slide switching

    I have a standard presentation first page that I use with all of my 
presentations. However it is quite boring. Using VBA I randomly place 
lines and shapes on the slide. Works great.
    Now the problem. When I move forward in the presentation, the 
function continues to run. I have set it up as an infinate loop, so I 
know why it is still running. I have tried to find some event in the 
presentation that I can use to stop the loop. However I cannot find one. 
Since a click, or 'page down' do the switching, there must be a way.
    If anyone can point me in the right direction it would be appreciated.
    While I am on the same topic, is there a way to automatically start 
a macro when the presentation starts? Currently, to start my display, I 
am using a macro linked to an object on teh slide. Again it works ok, 
but an automated process would be best.
    I am using Powerpoint/Office 2000.
    Any help would be appreciated.
    Thanks in advance
     John Crawford

6. Placeholders with BATCH IMPORT vba

7. VBA - reset placeholder

8. VBA 2007: Inserting an image uses available placeholder

Return to PowerPoint


Who is online

Users browsing this forum: No registered users and 87 guest