change currrent slide in a macro

S

sandy

Hi

In a macro, I'd like to change the slide displayed.

If NetworkConnection = 1 Then
ActiveWindow.View.GotoSlide (49) 'Slide 49
MsgBox "conn = 1"
Else
ActiveWindow.View.GotoSlide (48) ' Slide 48
MsgBox "conn = 0"
End If

It doesn't work. Can u plz help me?

Sandy
 
D

David M. Marcovitz

If this is running in Slide Show mode, try:

ActivePresentation.SlideShowWindow.View.GotoSlide (49)

If this is running in Normal view, then try

ActivePresentation.Slides(49).Select

--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/
 
S

Shyam Pillai

Hi Sandy,
This code will work provided it is running in the design environment, it
does not apply to the slideshow view.
 

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