Powerpoint - Showing slide follow by today day RRS feed

  • Question

  • Hi,

    I have a question in Powerpoint. I have 5 Powerpoint slides.

    How do I show the slide based on the calendar today day.

    For e.g. Today is Wednesday, it will show slide 3. Or Today is Friday then it will show slide 5.

    It might need some visual basic or macro with function if then else :)


    Thursday, June 25, 2020 11:19 AM

All replies

  • Hello Dave,

    You are on the right avenue. You need to use the View.GotoSlide method from the PowerPoint object model which switches to the specified slide.

    This example switches from the current slide to the slide three in slide show window one. If you switch back to the current slide during the slide show, its entire animation will start over.

    With SlideShowWindows(1).View
        .GotoSlide 3
    End With

    Finally, you may find the Getting started with VBA in Office article helpful. 

    profile for Eugene Astafiev at Stack Overflow, Q&A for professional and enthusiast programmers

    Thursday, June 25, 2020 4:09 PM
  • Hi,

    Thanks for your response.

    That gotoslide will always point to that slide.

    I want to follow with today day. So basically, Powerpoint will check the system calendar today() then it will show the slide. So I would say Monday showing slide1, Tuesday showing slide2 and so on.

    Saturday, June 27, 2020 7:34 AM