Passing Parameters

W

wfb

I have a PowerPoint Slide used in a training course. The slide ha
information boxes about an application feature that appear vi
animations when users click on powerpoint objects such as a rectangl
that is on the screen. I also have a macro that runs simultaneousl
when users click on the rectangle(called via the rectangle's actio
settings) that writes some information to the registry. Th
information in the registry is just basically a flag that indicate
whether or not the user has clicked on the rectangle. This tells m
that they've looked at every feature I want them to try.

My question is this: Is there a way to pass some parameters to thi
macro so I don't have to have a subroutine(macro) for every object o
the slide that I would like the user to click? If I were able to pas
a parameter, obviously I could then have a generic routine that woul
simply read the parameters being passed and subsequently write th
proper info the registry.

Thanks for any help you can offer in advance
 
H

Hans Hofmann

On Wed, 26 Nov 2003 11:10:54 -0600, wfb
My question is this: Is there a way to pass some parameters to this
macro so I don't have to have a subroutine(macro) for every object on
the slide that I would like the user to click? If I were able to pass
a parameter, obviously I could then have a generic routine that would
simply read the parameters being passed and subsequently write the
proper info the registry.

You can pass a shape parameter to a click-macro. Read Dokumentation of .Run
- method for details, e.g.

Sub ShapeWasClicked(sh as shape)
MsgBox sh.name & "was been clicked"
End Sub

Regards hw
 

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