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 / August 2006

Tip: Looking for answers? Try searching our database.

Identify existing placeholders on notes master

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
caten - 30 Jul 2006 22:21 GMT
I want to create a macro that checks the notes master for existing
placeholders and adds only those placeholders (of the six available) that do
not already exist.  

I am able to delete all placeholders and then create all placeholders, but
then the slides do not automatically reflect the formatting of the newly
added placeholders. Yes, I could reapply the master to all slides but that
messes with the formatting inside the body text box (my tabs and indentation
settings get lost).

I know how to check the type of a placeholder and then do something if it is
(or is not) a specific type (such as ppPlaceholderBody). But I can't figure
out how to "take attendance".  Is there some sort of "if this placeholder
format is/is not represented on this notes master then..." routine/structure
I can use?

I have searched http://www.pptfaq.com (and the Internet in general) but
can't seem to find quite what I need. I'm hoping someone has done something
like this before and can point me to an example. If not, then a hint as to
how to approach this would help too.
Steve Rindsberg - 31 Jul 2006 03:53 GMT
Simplest way I know is:

Sub RestoreNotesMaster()
  ' If you try to add a placeholder that's already there
  ' PowerPoint will throw an error.  Tell it to ignore errors:
  On Error Resume Next
 
  With ActivePresentation.NotesMaster.Shapes
      ' Body text
      .AddPlaceholder (ppPlaceholderBody)
      ' Slide image (on notes master, it's the Title placeholder)
      .AddPlaceholder (ppPlaceholderTitle)
      ' etc
  End With

End Sub

> I want to create a macro that checks the notes master for existing
> placeholders and adds only those placeholders (of the six available) that do
[quoted text clipped - 16 lines]
> like this before and can point me to an example. If not, then a hint as to
> how to approach this would help too.

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.com
================================================
caten - 07 Aug 2006 15:40 GMT
Ah-ha!  The key piece of information I was missing was that PowerPoint WON'T
add a placeholder to the NotesMaster if that placeholder is already
represented on the NotesMaster.  Thank you for clarifying.

> Simplest way I know is:
>
[quoted text clipped - 39 lines]
> PPTools:  www.pptools.com
> ================================================
Steve Rindsberg - 07 Aug 2006 21:29 GMT
> Ah-ha!  The key piece of information I was missing was that PowerPoint WON'T
> add a placeholder to the NotesMaster if that placeholder is already
> represented on the NotesMaster.  Thank you for clarifying.

No problem.  The same is true of most other placeholders on slides, masters, etc.
by the way.

> > Simplest way I know is:
> >
[quoted text clipped - 39 lines]
> > PPTools:  www.pptools.com
> > ================================================

-----------------------------------------
Steve Rindsberg, PPT MVP
PPT FAQ:  www.pptfaq.com
PPTools:  www.pptools.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.