Setting oSL to last slide in presentation

B

Barb Reinhardt

I have the following to add a slide to the presentation

Set oSL = aPPS.slides.Add(aPPS.slides.Count + 1, .Shapes(j).Parent.Layout)

but there are times when I want to define oSL as the last slide in the
active presentation. How would I do that?

Thanks
 
D

David M. Marcovitz

Do you mean:

Set oSL = ActivePresentation.Slides(ActivePresentation.Slides.Count)

--David

--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/

=?Utf-8?B?QmFyYiBSZWluaGFyZHQ=?=
 

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