change currrent slide in a macro

  • Thread starter Thread starter sandy
  • Start date Start date
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
 
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/
 
Hi Sandy,
This code will work provided it is running in the design environment, it
does not apply to the slideshow view.
 
Back
Top