HeaderFooter dilemma

V

vbafreak

Hi,

When setting the footer text in a presentation based on a template I thought
it were enough to just looping through avalable designs and setting the
footer text on the slide master. This is just about the slides affected byt
the slidemaster, not the title master.

Using PowerPoint 2003 english version.

Code:
=========================================================

For i = 1 To oPres.Designs.Count

Set oFooter = oPres.Designs(i).SlideMaster.HeadersFooters.Footer

If Not oFooter.Visible Then
oFooter.Visible = True
End If

oFooter.Text = sFooterText

Next i

=========================================================

But, If the user has already set the HeaderFooter text with View | View
Header and Footer
in PowerPoint, the text which is displayed on the slides are the text
entered in PowerPoint, *not* the text which was set with the code above.

A quick fix to that was just to let the user set View | View Header and
Footer to blank empty text in the footer.

Question 1

- Do I always also need to loop through all slides and set the footer text
there as well exept setting it in the slide master?

I tried that that one, it worked but, PowerPoint flagged those slide
footers as "dirty" in some way and didn't change the slide footer when
copying and pasting to another presentation( normally the pasted slides
takes the target presentation footer. I didn't kept the source formmating
when pasting.)

Question 2
- Doest .DisplayMaster affect this?

Thx in advance
 

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