Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Applying multiple Slide Master designs using vba

709 views
Skip to first unread message

Jim

unread,
Jan 2, 2003, 2:57:43 AM1/2/03
to
I have a template with 2 different "Slide Masters". I
would like to apply "Slide Master One" to slide-one.
and "Slide Master Two" to slide-two.
I can open and/or apply the template using vba, but I
can't figure out how to selectively apply the slide
masters. Any help would be greatly appreciated.

-- Jim

Shyam

unread,
Jan 2, 2003, 6:17:54 AM1/2/03
to
Jim,
Every slide has a Design object associated with it. You need to set this
property to reflect the design you wish to apply to a given slide range.

' Assuming the presentation has multiple masters. To assign the 2nd template
to the 2nd slide.
With ActivePresentation
.Slides(2).Design = .Designs(2)
End With

' To assign the 3rd template to a slide range
With ActivePresentation
.Slides.Range(Array(1, 3)).Design = .Designs(3)
End With

Note that if a particular design ceases to be used by any of the slides, it
will be removed from the presentation masters.

--
Regards
Shyam Pillai

Shyam's Toolbox for PowerPoint
http://www.mvps.org/skp/toolbox

"Jim" <j...@help.com> wrote in message
news:00b901c2b234$a14bad10$8af82ecf@TK2MSFTNGXA03...

Jim

unread,
Jan 2, 2003, 8:01:18 AM1/2/03
to
Thank You... That's the line of code I needed.
I have gotten a lot of good information from your web
site...
Thanks again...
-- Jim
>.
>
0 new messages