Could anyone walk me through the process for writing this VBA code. (Or if
there is some other way to do this, I'm all ears)
Thanks
Gary,
You just (correctly) suggested to another user that animations might be the
best way to go. That might be true for you as well. Why can't you have the
X's and O's be triggered by the clicks on your invisible buttons.
If you want to use VBA, I have been finding that the 2007 occasionally has
problems with macros that adjust the .Visible property of a shape. What I
have been recommending to my students is to adjust the .Top property of a
shape so it is off the screen (e.g. .Top = 3000) to make the shape invisible
and then put it back to normal (e.g. .Top = 150) to make the shape visible.
You will also need a procedure (probably run from the first slide) to set
the board up. If you were just dealing with two shapes, and you were to use
the .Visible property) the code would look something like this:
Sub Initialize()
ActivePresentation.Slides(2).Shapes("X1").Visible = msoFalse
ActivePresentation.Slides(2).Shapes("O1").Visible = msoFalse
End Sub
Sub ShowX1()
ActivePresentation.Slides(2).Shapes("X1").Visible = msoTrue
End Sub
Sub ShowO1()
ActivePresentation.Slides(2).Shapes("O1").Visible = msoTrue
End Sub
To avoid the problem with the Visible property, you could change .Visible =
False to .Top = 3000, and .Visible = True to .Top = 150 (or whatever will
get the shape in the right spot on the slide).
The other thing that you need to do is name all your shapes (you can see
shape-naming code on my site -- http://www.PowerfulPowerPoint.com/ -- in
Example 8.7).
--David
--
David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
Microsoft PowerPoint MVP
Associate Professor, Loyola University Maryland
Thank you very much for your response. I'm getting a book on VBA, but the
learning curve will probably take a while. I am pretty proficient in PPT,
but have no idea how to trigger the X & O by clicking on the object. How is
this possible?
Thank you again for your help.
Gary
"David Marcovitz" wrote:
> .
>
http://pptheaven.mvps.org/tutorials/trigger.html
http://www.indezine.com/products/powerpoint/cool/trigger01.html
http://office.microsoft.com/en-us/powerpoint/HA010873001033.aspx
--David
On 11/20/09 7:58 PM, in article
CFF59FD2-0DE4-43CB...@microsoft.com, "Gary in AZ"