VBA for Powerpoint help
007bond
13 Nov 2004, 21:37I'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
14 Nov 2004, 08:19I no longer have Powerpoint installed on my PC', but vaguely recall something like
as being the VBA way to show the next slide - could be horribly wrong though, not used PP since "Office 97"
Al (MaDbRiT)
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
15 Nov 2004, 08:12Thanks 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
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
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
15 Nov 2004, 11:59I 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
I don't smoke, but working from memory I'd say definitely worth a cheroot if not a big fat Havana!
Al
007bond
16 Nov 2004, 08:52oh, well thanks anyway!