Animation with VBA

J

Jim

I have been able to link a banner to a button that is the correct response
for a question on a test. The banner pops up and says "good Job" or whatever.
Unfortunately, the slide will not advance automatically after the banner pops
up. I physically have to click the right answer button again to advance the
slide. All other slides advance as they are supposed to. Any ideas?
 
D

David M. Marcovitz

I'm not clear on what exactly you are trying to do. Are you using a
combination of VBA and slide transitions? You should be able to do it all
in VBA:

ActivePresentation.SlideShowWindow.View.Next

will generally jump to the next slide unless there are animations in
which case it will activate the next animation. If you really want to go
to the next slide and not the next animation then:

ActivePresentation.SlideShowWindow.View.GotoSlide _
ActivePresentation.SlideShowWindow.View.Slide.SlideIndex + 1

Tell us more about what you are doing, and we might be able to give a
better answer. Posting a snippet of misbehaving code is often helpful.

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
J

Jim

What I have done is created a multiple choice test with several different
buttons representing right and wrong answers. I want to make a banner or star
or whatever popup occasionally when the student makes the correct solution. I
can get the banner to come up when the right answer is chosen but the banner
won't go away or the slide won't automatically advance to the next slide
unless I depress the correct button again. I have entered
slideshowpresentation.view.next and still no luck. Thanks
 
D

David M. Marcovitz

I think your exact code will be helpful. What you describe is certainly
possible, but I'm not sure what you're doing wrong without seeing some
code.

Just from the code you listed, you shouldn't be able to get much of
anything to work. Change:

slideshowpresentation.View.Next

to

ActivePresentation.SlideShowWindow.View.Next

If that doesn't fix it, post more code.

By the way, Example 6-6 on my site basically does what you want, but it
doesn't automatically advance to the next slide. The problem with
automatically advancing to the next slide when you have a shape pop up is
that your users won't get to see the shape unless you delay going to the
next slide (see Example 8-4 for a delay procedure). Alternatively, you can
use a MsgBox, which needs to be dismissed before anything will happen, so
you can go to the next slide immediately after the box is dismissed.

--David

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
J

Jim

Thank you. That will work

David M. Marcovitz said:
I think your exact code will be helpful. What you describe is certainly
possible, but I'm not sure what you're doing wrong without seeing some
code.

Just from the code you listed, you shouldn't be able to get much of
anything to work. Change:

slideshowpresentation.View.Next

to

ActivePresentation.SlideShowWindow.View.Next

If that doesn't fix it, post more code.

By the way, Example 6-6 on my site basically does what you want, but it
doesn't automatically advance to the next slide. The problem with
automatically advancing to the next slide when you have a shape pop up is
that your users won't get to see the shape unless you delay going to the
next slide (see Example 8-4 for a delay procedure). Alternatively, you can
use a MsgBox, which needs to be dismissed before anything will happen, so
you can go to the next slide immediately after the box is dismissed.

--David

--David

--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top