Animation interferes with Action Settings

M

Marco

I added Action Settings on a rectangle, to run a macro if I hover the cursor
over it. The macro makes a chart below the rectangle visible:

Sub ShowChart()
Application.ActivePresentation.Slides(2).Shapes("Chart1").Visible=msoTrue
End Sub

If I add an entrance effect to another image on the same slide
(Slideshow>Custom animation), the macro stops running.

Can anyone help me figure out what I'm doing wrong? Thank you.
 
D

David M. Marcovitz

I have seen this before. Using the .Visible property in VBA has problems
when animation is introduced on the slide. I think it is a PowerPoint
bug/limitation. The only solution I have found to get it to work
consistently is to not use animation on a slide where I manipulate the
..Visible properties of objects on that slide.

As a side note, the macro actually works. You'll notice that if you hit
Esc after trying to run your macro, the shape will be visible on the
slide. Unfortunately, the "visible" shape won't show up until you quit
out of the slide show (a bit too late).

--David

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

Marco

It turns out that the animated image was not a single image, but three shapes
with a single entrance effect.

If I group the images, and then apply the entrance effect, the Mouse Over
macro runs correctly during the Slide Show.
 

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