David M. said:
Thanks for catching that. I bet there are few more possibilities we can
think of. For example, what if the slide show is set to play only slides
5 to 10? I'm glad I don't do coding for a living. I would hate to have
to think of every possible way my code could mess up.
It's a given that you *can't* think of every possible way to mess your code up.
That's what users and Microsoft are for. ;-)
That's one I hadn't thought of either. Michael, if you're still watching:
Dim lStart, lEnd as Long, lAdvanceMode
With ActivePresentation.SlideShowSettings
lStart = .StartingSlide
lEnd = .EndingSlide
lAdvanceMode = .AdvanceMode
End With
Then instead of iterating through the entire slides collection, go from lStart
to lEnd
But first,
if lAdvanceMode <> ppSlideShowUseSlideTimings Then
' ppSlideShowUseSlideTimings is a constant = 2 by the by
' BUG OUT, the show won't advance
' Or change the setting yourself so it DOES,
' then assign arbitrary timings to all slides
' since the user didn't bother to
End if