VBA for Powerpoint help

007bond
I'm doing a school project in powerpoint. It's a game, and I want it to check if the player has got all the supplies. if he has then, it takes him to a new slide. If not, it displays a messagebox. All I need to know is how do I go to a new slide using VBA?

Anonymous
I no longer have Powerpoint installed on my PC', but vaguely recall something like

SlideShowWindows(Index:=1).View.Next


as being the VBA way to show the next slide - could be horribly wrong though, not used PP since "Office 97"

Al (MaDbRiT)

007bond
Thanks for the help, but I finally managed to get onto vbforums.com, and got an answer there, but only after i'd asked here. By the way, I'm still using Office 97 for Powerpoint too, so nothing to be ashamed of :D
And yes you are a bit off. The code that I was looking for (or somewhat similar, anyway) was "SlideShowWindows(1).View.GotoSlide 111". Yours is close, but no cigar

Anonymous
I assumed you wanted to advance to the next slide instead of going to a slide specific # - so I gave what I recalled as the code for 'next' slide

I don't smoke, but working from memory I'd say definitely worth a cheroot if not a big fat Havana!

Al

007bond
oh, well thanks anyway!

This topic is now closed. Topics are closed after 14 days of inactivity.

Support

Forums