[RESOLVED] VBA Powerpoint Slide History
I want to create a button that will go back to the slides that have been viewed,
i have tried using the .LastSlideViewed Property but this only returns back to the previously viewed slide, i need to go back through the whole history of viewed slides.
any help will be much appreciated.
Thank You
Re: VBA Powerpoint Slide History
This can be done, but it's not an easy thing to do. I posted this onVBA Express:
You can set up a global array to hold the last 10 slide numbers, and whenever you advance slides, add the current slide number to the top of the list, and drop the 11th slide number. The back button would go to the previous and drop the top number.
If you only allow advancing thorugh buttons, you could have them run a macro to do this, but if you allow the user to advance through the built-in methods (mouse click, using the slide menu at the lower left, or typing the slide number and pressing the enter key) then you need to build the array when the slide changes, and this is a lot more involved.
Re: VBA Powerpoint Slide History
Hi, thanks for your reply, i figured out how to do what i needed without maintaining a slide history.
Re: [RESOLVED] VBA Powerpoint Slide History
Hi,
Is there any chance you could tell me how you did this?
I am having the same query.
Cheers
Re: [RESOLVED] VBA Powerpoint Slide History
Hi, as far as I can remember, I couldn't really find an automatic way of maintaining slide history. So what I did was to, use the .LastSlideViewed for most slides. In some cases, I used go to slide instead, for cases where I needed to go back to a particular slide that might not have been seen before.
I hope that helps.
If your still having problems, please explain what you are trying to do in more detail, and I might be able to help.
Good Luck.