PC Review


Reply
Thread Tools Rate Thread

Detecting placeholders in vba

 
 
NabilShuh
Guest
Posts: n/a
 
      22nd Oct 2008
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?

Thanks
 
Reply With Quote
 
 
 
 
Edward
Guest
Posts: n/a
 
      22nd Oct 2008
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 lik
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,
Edward


"NabilShuh" wrote:

> 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?
>
> Thanks

 
Reply With Quote
 
NabilShuh
Guest
Posts: n/a
 
      23rd Oct 2008
Yes the numbers way did the job. Thanks

"Steve Rindsberg" wrote:

> In article <34CC9DD6-4674-4BFF-9EA9-(E-Mail Removed)>, Edward wrote:
> > 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.

>
> 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
> PPT FAQ: www.pptfaq.com
> PPTools: www.pptools.com
> ================================================
>
>
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Placeholders Chewie Microsoft Powerpoint 2 1st Jan 2009 03:57 PM
create two text placeholders above multiple content placeholders shar Microsoft Powerpoint 3 25th Aug 2008 11:16 PM
How do I set up placeholders? =?Utf-8?B?YW5pdHJvbg==?= Microsoft Word Document Management 3 26th May 2006 02:52 PM
Placeholders =?Utf-8?B?Tml0aW4=?= Microsoft Powerpoint 2 5th Mar 2005 12:33 AM
placeholders mark bayliss Microsoft Powerpoint 3 10th Sep 2003 12:08 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 01:46 AM.