Lisa,
You might want to check out some of the examples on my Web site to see
how they work:
http://www.loyola.edu/education/PowerfulPowerPoint/
None of them do exactly what you want, but some of them cover the same
ideas.
VBA is the scripting language that is built into PowerPoint. The VBA code
is part of the PowerPoint presentation. When you write a procedure, (the
thing starting with a Sub and ending with an End Sub), you can tie that
procedure to a button or other object or text. You do this from within
PowerPoint by choosing the object you want, going to the Slide Show menu,
and choosing Action Settings. The action you want is to Run Macro. When
you choose that, the drop down menu below to Run Macro should list all of
the procedures (Subs) that you have written in the VBA editor. When you
click on the button (in Slide Show mode), it will run the VBA procedure.
You can also run a procedure by choosing Macro and then Macros from the
Tools menu (within PowerPoint, not the VBA Editor). There you should see
a list of your macros. You can select one of them to run.
Finally, you can run a macro from within the VBA Editor, by choosing Run
Sub/User Form from the Run menu. It wil run whatever macro your cursor is
in.
For the Peekaboo code, you must be running in Slide Show View, and the
shape on which you want to hide the text must be the one that is tied to
the Peekaboo procedure.
Be sure that you are only using one module. If you have two, you will
just be confused (that could account for the two PeekABoo procedures when
you only see one).
Another issue that you might be having is that you might have more than
one PowerPoint presentation open. If you have two presentations open, you
might have accidentally put the macro in the wrong one. It is very
confusing in the VBA editor and hard to keep track of which Module 1 you
are working in.
I hope this clears up your confusion rather than makes it worse. Let us
know when you have more questions.
--David
--
David M. Marcovitz
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/