Announcement

Collapse
No announcement yet.

Unconfigured Ad Widget

Collapse

Go To A Slide

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Go To A Slide

    Greetings,
    I want a macro to go to slide 4 after it has done some other business. I used the code below;

    Code:
    With SlideShowWindows(1)
     .View.GotoSlide (.Presentation.Slides(4).SlideIndex)
    End With
    It comes up with the error, “SlideShowWindows (unknown member): Integer out of range. 1 is not in the valid range of 1 to 0.”

    I would swear 1 is in the range 1 to 0...

    Help please,
    Benny

  • #2
    Re: Go To A Slide

    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.

        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

    Cheers
    Andy

    Comment

    Trending

    Collapse

    There are no results that meet this criteria.

    Working...
    X