Animation interferes with Action Settings

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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.
 
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/
 
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.
 
Back
Top