Help

S

Simon

I am trying to make a box bigger on the click of the mouse
and then when you click it again it will decrease in
size. Can this be done simply? or does anyone know the
VB code to do this.

Thanks
Simon
 
E

Echo S

It's very easy in PPT 2002 (aka PPT XP) and 2003, but you didn't bother to
mention what version of PPT you're using.
 
D

David M. Marcovitz

You can probably do this most easily with trigger animations, but the
following VBA might be what you want. Assign the Action Settings for
your shape to either of the following macros. When you click on the
shape (in Slide Show mode), it will alternately get bigger (by a factor
of 1.5) and smaller by a factor of 1.5. Change the 1.5 in the procedures
to change the factor:

Sub Bigger(myShape As Shape)
myShape.Height = myShape.Height * 1.5
myShape.Width = myShape.Width * 1.5
myShape.ActionSettings(ppMouseClick).Run = "Smaller"

End Sub

Sub Smaller(myShape As Shape)
myShape.Height = myShape.Height / 1.5
myShape.Width = myShape.Width / 1.5
myShape.ActionSettings(ppMouseClick).Run = "Bigger"
End Sub


--
David M. Marcovitz, Ph.D.
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