Using Macros to end PPS - can this be done, if so how?

K

KDC

I have just found out that I can not use a continuous loop and end a show on
a time or specified duration. However, I am wondering if I can use a macro
to start and end a show? Again, I am not talking about slide transition; I
am talking about the complete show (presentation).
 
A

Austin Myers

Depending on what you want you might use the
"SlideShowWindows(1).View.Last" statement. I prefer this over an abrupt
ending of a slide show so I can use the last slide to exit gracefully.


Austin Myers
MS PowerPoint MVP Team

Provider of PFCMedia, PFCPro, PFCExpress
http://www.pfcmedia.com
 
K

KDC

Thank You Austin. I have not attempted to apply macros, could you give me a
step by step of what you are suggesting here:
"you might use the "SlideShowWindows(1).View.Last" statement. "
 
A

Austin Myers

Go to tools, Macros, and Visual basic editor.

From the menu select, Insert > Module

In the module paste this:

Sub Macro1()
SlideShowWindows(1).View.Last
End Sub

That will do it, now all you need do is determine how or what will fire the
macro off.


Austin Myers
MS PowerPoint MVP Team

Provider of PFCMedia, PFCPro, PFCExpress
http://www.pfcmedia.com
 
K

KDC

I pasted this, ran my macro and recieved this error: run-time error
'-214788160 (80048241': slideshowWindows (unknnown member): Interger out of
range. 1 is not in the valid range of 1 to 0.

Please advise
 
K

KDC

Thank you this worked, one last question where do I put the amount of time I
want this slide to run or when I want it to end? Could you give me an
example?
 

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