PDA

View Full Version : Solved: Navigating when in "Show" Mode



dumbpuppy
10-09-2007, 03:04 PM
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

dumbpuppy
10-09-2007, 03:55 PM
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