slide masters

  • Thread starter Thread starter Casey Brown
  • Start date Start date
C

Casey Brown

Hi!
I feel like I might be missing an obvious property, but is there a way to
delete a Design's titlemaster through code? PPT XP.

A somewhat related question is: Is there any property a design has that
will tell me how many slides in the presentation use that design? If not,
it's not a big deal, as I can just loop through all the slides in the
presentation and count those that have the design name i'm after.

Thanks in advance for your time!

-Casey
 
View | Master | Slide Master. When displayed, delete the Title Master, then save
the template.

Why go to all the trouble of deleting it. You don't have to use it if you don't
want. There is only on slide that uses that design.

--
<>Please post all follow-up questions/replies to the newsgroup<>
<><>Email unless specifically requested will not be opened<><>
<><><>Do Provide The Version Of PowerPoint You Are Using<><><>
<><><>Do Not Post Attachments In This Newsgroup<><><>
Michael Koerner [MS PPT MVP]


Hi!
I feel like I might be missing an obvious property, but is there a way to
delete a Design's titlemaster through code? PPT XP.

A somewhat related question is: Is there any property a design has that
will tell me how many slides in the presentation use that design? If not,
it's not a big deal, as I can just loop through all the slides in the
presentation and count those that have the design name i'm after.

Thanks in advance for your time!

-Casey
 
[CRITICAL UPDATE - Anyone using Office 2003 should install the critical
update as soon as possible. From PowerPoint, choose "Help -> Check for
Updates".]

Hello,

PowerPoint doesn't provide the functionality (user interface which displays
number of slides using each design) that you are looking for without
resorting to VBA or add-ins.

If you (or anyone else reading this message) think that it's important that
PowerPoint provide this kind of functionality natively (without having to
resort to VBA or add-ins), don't forget to send your feedback (in YOUR OWN
WORDS, please) to Microsoft at:

http://register.microsoft.com/mswish/suggestion.asp

As with all product suggestions, it's important that you not just state
your wish but also WHY it is important to you that your product suggestion
be implemented by Microsoft. Microsoft receives thousands of product
suggestions every day and we read each one but, in any given product
development cycle, there are only sufficient resources to address the ones
that are most important to our customers so take the extra time to state
your case as clearly and completely as possible.

IMPORTANT: Each submission should be a single suggestion (not a list of
suggestions).

John Langhans
Microsoft Corporation
Supportability Program Manager
Microsoft Office PowerPoint for Windows
Microsoft Office Picture Manager for Windows

For FAQ's, highlights and top issues, visit the Microsoft PowerPoint
support center at: http://support.microsoft.com/default.aspx?pr=ppt
Search the Microsoft Knowledge Base at:
http://support.microsoft.com/default.aspx?pr=kbhowto

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
 
I feel like I might be missing an obvious property, but is there a way to
delete a Design's titlemaster through code? PPT XP.

' Test first to see that it has a title master before trying to delete it
If ActivePresentation.Designs(index).HasTitleMaster Then
ActivePresentation.Designs(index).TitleMaster.Delete
End if

or

If ActivePresentation.Designs(design_name).HasTitleMaster Then
ActivePresentation.Designs(design_name).TitleMaster.Delete
End if
A somewhat related question is: Is there any property a design has that
will tell me how many slides in the presentation use that design? If not,
it's not a big deal, as I can just loop through all the slides in the
presentation and count those that have the design name i'm after.

No way of doing it that I know of, other than what you've described.
 
Casey,
Use - ActivePresentation.Designs(1).TitleMaster.Delete

To detect how many slides are using a design you need to loop thru the
slides. If a design is not in use, then it will be automatically deleted if
the Preserve master property for that design is set to False.
 
Thank you, Steve and Shyam. Not sure how that nipped below my radar--I was
aware of Design's Delete method but didn't notice master's Delete().

I had been relying on designs to be automatically deleted if they weren't
being used by leaving the preserve master property false, but it wasn't
working quite correctly which prompted me to go with the "do-it-myself"
sledgehammer approach. I didn't test too thouroughly--i'm willing to admit
there's a good chance that it wasn't the Preserve property that wasn't
working, but more likely my own code. Oh well...it now does what I need it
to!

Thanks again--you guys are great!

-Casey
 
Back
Top