I want a macro to go to slide 4 after it has done some other business. I used the code below;
It comes up with the error, “SlideShowWindows (unknown member): Integer out of range. 1 is not in the valid range of 1 to 0.”VB:With SlideShowWindows(1) .View.GotoSlide (.Presentation.Slides(4).SlideIndex) End With
I would swear 1 is in the range 1 to 0...
I get that error when running the macro in design mode. If the slide show is running it works.
Try this variation for going to the slide in either mode.
VB:If Application.SlideShowWindows.Count = 0 Then ' make slide 4 active in design mode ActivePresentation.Slides(4).Select Else ' this will work in slide show mode. With SlideShowWindows(1) .View.GotoSlide (.Presentation.Slides(4).SlideIndex) End With End If
There are currently 1 users browsing this thread. (0 members and 1 guests)