Fig ure 4.5. Ac tion Set tings Di a log Box
Now go back to Edit View (also known as Normal View) by hitting the Es -
cape key on your keyboard. To fin ish your button, right-click (control click on a
Macintosh) on it and choose “Add Text” from the flyout menu.
You can now add
text to de scribe what your button does. This text will show up on the but ton, so
users will know what they are clicking when they click your but ton.
Tying Your VBA Script to Any Object
You can tie your VBA script to any ob ject you want, not just a but ton. Use
the drawing tools to draw a shape (there are several in teresting ones from which
to choose in the AutoShapes menu of the Draw toolbar).
Once you have drawn
the shape, click on it to select it. Now choose “Ac tion Set tings” from the Slide
Show menu. You will get the same di alog box shown in Fig ure 4.5, and you can
choose Run Macro and the SayHello macro, exactly as you did above. Now you
can click on the drawn ob ject just like you can click on the button.
This method works
for any PowerPoint ob ject, not just the ones you draw
yourself. You can in sert clip art and make it clickable by assigning Action Set-
tings (just like you do to shapes you draw your self) to run your script. You can
copy and paste pic tures from other sources (such as the Web). You can even
make text in your slide clickable by high lighting the text and choos ing “Ac tion
Set tings” from the Slide Show menu.
Tying Your VBA Script to Any Ob ject 45