What is the "HasTitleMaster" property

R

RobFMS

I am working on some automation code and I am trying to get an understanding
of the "HasTitleMaster" property. I was looking at the macro code that was
being generated from PowerPoint (2003). If someone could offer some detail
information on this, I would appreciate it.

'Public Sub HeadersAndFooters()
'
' If ActivePresentation.HasTitleMaster Then
' With ActivePresentation.TitleMaster.HeadersFooters
' With .DateAndTime
' .Format = ppDateTimeMdyy
' .Text = ""
' .UseFormat = msoTrue
' .Visible = msoTrue
' End With
' With .Footer
' .Text = "(this is the footer)"
' .Visible = msoTrue
' End With
' .SlideNumber.Visible = msoTrue
' End With
' End If
' With ActivePresentation.SlideMaster.HeadersFooters
' With .DateAndTime
' .Format = ppDateTimeMdyy
' .Text = ""
' .UseFormat = msoTrue
' .Visible = msoTrue
' End With
' With .Footer
' .Text = "(this is the footer)"
' .Visible = msoTrue
' End With
' .SlideNumber.Visible = msoTrue
' End With
' With ActivePresentation.Slides.Range.HeadersFooters
' With .DateAndTime
' .Format = ppDateTimeMdyy
' .Text = ""
' .UseFormat = msoTrue
' .Visible = msoTrue
' End With
' With .Footer
' .Text = "(this is the footer)"
' .Visible = msoTrue
' End With
' .SlideNumber.Visible = msoTrue
' End With
'
'End Sub

Thanks,
 
D

David M. Marcovitz

It returns true if the presentation has a title master. In your code, it
seems to be adjusting the headers and footers of the slides by playing
with the masters. There has to be at least one slide master so it doesn't
need to check that, but a presentation doesn't necessarily have a title
master, so it checks to see if one is present before it starts messing
with it.
--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
R

RobFMS

David

I appreciate the reply.

I am still confused though. Is the Title Master considered the first slide?
Is the Title Master a template that is used for other slides being added?
This is what I am confused about. If I am going to build slides on-the-fly
via automation and I want to set the Headers/Footers, where does the Title
Master come into play?

Thanks,
 
S

Shyam Pillai

A PowerPoint design comprises of a slide master and/or a title master. Each
design will always have a slide master. The HasTitleMaster tells you if the
design has a titlemaster or not. If you are using PPT 2000 or earlier, only
one design could be applied to a presentation. Later versiond support
multiple designs in a single presentation.
 
S

Shyam Pillai

Layout is not the same as Design. A Design refers to the template
(consisting of custom background, the color scheme ) that is applied to the
slides. Slide Layout refers to the arrangment of shapes (placeholders) on
the slides.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top