macro trigger from builds?

B

B

OK, so its a weird question sort of a day...

Is there a way to activate an action setting or macro from a build event
(transition or animation)? I'm sure this has been addressed and I just
haven't found the answer, but it would be a nice trick to add to my tool
belt. (Useful to fire a macro without mouse visible on screen)

I know I could use a VBA build event capture to run a macro to evaluate if
the other macro should run on this build, but this seems a bit sloppy.

Thanks,
B

===============
Please spend a few minutes checking out www.pptfaq.com This link will
answer most of our questions, before you think to ask them.

Change org to com to defuse anti-spam, ant-virus, anti-nuisance
misdirection.
 
S

Shyam Pillai

I haven't come across any approach to arrive at such a solution, yet, apart
from the approach you've already mentioned.

Regard
Shyam
 
B

B

Thank you. Now I don't feel so dumb.

B

Shyam Pillai said:
I haven't come across any approach to arrive at such a solution, yet, apart
from the approach you've already mentioned.

Regard
Shyam
 
A

Austin Myers

B,

Not certain I know what you mean. Can you give an example of how you want
to use it.

Austin Myers
MS PowerPoint MVP Team
 
B

B

Sure, example:

I want to trigger an action setting (for the sake of argument, let's say
'Run Program' -- 'Notepad.exe') 5 seconds into a slide without the mouse
having to be click on or hover over anything on the slide.

Or I want to run a macro whenever a normally hidden slide is shown via a
hyperlink.

Or, hyperlink to another presentation when I advance the show, rather than
clicking on a linking object.

B
 
A

Austin Myers

Ok, got it.

I want to trigger an action setting (for the sake of argument, let's say
'Run Program' -- 'Notepad.exe') 5 seconds into a slide without the mouse
having to be click on or hover over anything on the slide.

In this example you would Insert > Object > Create From File > Notepad.exe.
Now under custom animations select add effect and navigate to the bottom and
select Object Actions. Finally select "Activate Contents". You'll see it
appear in the custom animation pane with the default "On Click". you can
change it as with any other object animation to after previous, with
previous, etc. and change the timing as desired. Does that do the trick for
you?

By the way, this is a VERY powerful feature and can be used in many ways.
One of my favorites is to launch a second (third, fourth, etc.) presentation
fromn the existing one without the need of user action.

Austin Myers
MS PowerPoint MVP Team
 
S

Steve Rindsberg, PPTMVP

I want to trigger an action setting (for the sake of argument, let's say
'Run Program' -- 'Notepad.exe') 5 seconds into a slide without the mouse
having to be click on or hover over anything on the slide.

Or I want to run a macro whenever a normally hidden slide is shown via a
hyperlink.

Or, hyperlink to another presentation when I advance the show, rather than
clicking on a linking object.

Though you couldn't do this in PPT97, I imagine you could get around most of
this with an event handler and a little sleep API medicine. In very round
numbers:

On Slide Change
If ThisSlide's RunMe tag <> "" then
Sleep 5000
Shell ThisSlidesRunMeTag Value
End if

Same kind of thing for the other stuff:
On the slide change event, check for some trigger condition like a tag on
the slide that tells you what/whether to do.
 
B

B

Sorry for the long delay, life has a habit of getting in the way.

This still does not address the main concern of starting a macro from an
animation cue. While it does allow for seamless linking of shows (sorry,
had forgotten that trick), it does not allow me to fire a macro without
making the mouse cursor visible and clicking on an object. This is the main
objective.

Thanks,
B
 
A

Austin Myers

B,

Drop me an email, I have something you may find interesting.

Austin Myers
MS PowerPoint MVP Team
 

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