Consulting

Results 1 to 12 of 12

Thread: How to Apply this VBA to more than just Slide 3??

Threaded View

Previous Post Previous Post   Next Post Next Post
  1. #1
    VBAX Regular
    Joined
    Feb 2022
    Posts
    37
    Location

    How to Apply this VBA to more than just Slide 3??

    This code works brilliantly for automatically returning the viewer from Slide 3 to 'last slide viewed'
    but it seems to only be applicable to one slide.
    For example, I want to apply it to every odd numbered slide in index (ie 3,5,7,9,11, etc) but then it stops working...

    Sub OnSlideShowPageChange()
    With ActivePresentation.SlideShowSettings
        .LoopUntilStopped = msoCTrue
        .AdvanceMode = ppSlideShowUseSlideTimings
        .ShowType = ppShowTypeWindow
        .Run
       End With
       
        Dim i As Integer
        i = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
        If Not i = 3 Then Exit Sub
        With SlideShowWindows(1).View
    
    
         .GotoSlide (.LastSlideViewed.SlideIndex), msoFalse
        End With
    
    
    End Sub
    Any help would be greatly appreciated!
    Last edited by Kellaroo; 03-09-2022 at 09:17 PM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •