Consulting

Results 1 to 2 of 2

Thread: Navigating when in "Show" Mode

  1. #1

    Navigating when in "Show" Mode

    I am working on a presentation which will be published to a large sales force. To make the automation as intuitive as possible I have objects (Buttons, text boxes, etc) on various screesn so the user can interact directly with the slideshow. This approach was taken as appossed to using a user form or direct macro calls in design mode.

    The issue I would like to solve is that when the presentation is running in "show" mode a single mouse click or arrow key will navigate forward and backward. This is not the case, unfortunately, when a user has pressed one of my buttons.

    Below is what I believe is happening:
    User hits button - Focus is moved to button and macro runs
    user hits arrow - Focus is moved to Slide
    User hits arrow again - user navigates successfully

    Below is what normally happens:
    user hits arrow - user navigates successfully

    Below is what I would like to have happen:
    User hits button - Macro runs
    User hits arrow again - user navigates successfully


    This has the effect of being confusing to the user.
    Basically, the user uses one of my buttons to do something. Then when ready to move to the next slide they hit the arrow (or mouse click) and nothing happens. Hitting the arrow again successfully navigates them.

    I don't see any focus method available in powerpoint vba. The closest method I can find is "select". But this does not appear to be a valid call when in "Show" mode.

    Any suggestions?

    Thanks

  2. #2
    Solution I found is to refresh the current slide.
    Code is below:

    Dim SlideIndex As Long
        SlideIndex = ActivePresentation.SlideShowWindow.View.CurrentShowPosition
        ActivePresentation.SlideShowWindow.View.GotoSlide SlideIndex
    Last edited by Aussiebear; 04-28-2023 at 02:27 AM. Reason: Adjusted the code tags

Posting Permissions

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