PDA

View Full Version : [SOLVED:] Automatically go back to a previous slide instead of forwards?



fkneg1
10-18-2013, 02:24 PM
Hi,
I want my presentation to loop through three slides until a hyperlink is clicked on one of them to continue the presentation. Is it possible to use VBA to make the presentation automatically go back to the beginning rather than going onto the fourth slide? Maybe using an action but one that works automatically at the end of the slide rather than waiting to for an input?
Thanks

John Wilson
10-19-2013, 04:32 AM
Have a read here (no vba needed)

http://www.pptalchemy.co.uk/PowerPoint_Loop_Intro.html

fkneg1
10-19-2013, 10:42 AM
Thanks but I'm creating my presentations from Access using VBA so they are different each time and I do not want to have to set up the custom shows each time. Is there a way to automate this process using VBA?

John Wilson
10-20-2013, 02:17 AM
You can create the custom shows from vba using the NamedSlideShows.Add method

pptPres.SlideShowSettings.NamedSlideShows.Add(Name,Array of SlideIds)

You can of course also add the action buttons.

fkneg1
10-20-2013, 09:25 AM
Thanks for your help - all sorted now using the method you described in VBA