PDA

View Full Version : Solved: Powerpoint VBA Code for 'Is Shape Displayed?'



Ian47
03-04-2007, 04:24 AM
Hello,

I am trying to generate some VBA Macro code to determine if a particular shape / text box etc is visable on screen during a slideshow.

I have been able to do this if the shape's .visible property is set to false or true by code itself:

Example:

Dim ShapeVisible As Boolean

ActivePresentation.Slides(2).Shapes.Item("Rectangle 123").Visible = msoFalse

ShapeVisible = ActivePresentation.Slides(2).Shapes.Item("Rectangle 123").Visible

If ShapeVisible Then

........ Rest of Code

EndIf


However, what I really need to do now is determine if a shape which has been set to appear / disappear by custom animation is 'on screen'(after appear) or 'off screen' (after Disappear).

Is this possible, as the shape's .visible property always seems to be 'True' irrespective of the Appear / Disappear animation?

Thanks for your help,

Ian