VB code

F

FB110

I need a Visual Basic for Applications code that will execute powerpoint
custom animations.
I'm creating a type of trigger that will carry out an animation when moused
over, and not when clicked.
 
J

John Wilson

As far as I know there's nowhere in the object model this can be done. Maybe
with API calls?

If you have no other animations on the slide it is possible to use vba to
add a with previous animation with a mouseover action which will play
straight away.
--
Amazing PPT Hints, Tips and Tutorials

http://www.PPTAlchemy.co.uk
http://www.technologytrish.co.uk
email john AT technologytrish.co.uk
 
B

Bill Dilworth

As John stated, there are no hooks in the Object Model to allow the start a
trigger animation from code.

However, it is possible with API calls to exactly place the mouse to a
location and simulate a mouse click. By making the trigger shape just 1 or
2 pixels big, it is unlikely that the user will accidentally come across it.
Use the mouse over action setting to activate a macro to fire the APIs to
start the trigger animation. I don't know why she swallowed the fly ...

This is not a beginner project, how are your VBA/API skills?

--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 
F

FB110

Then I assume that if I make many pixels with the same API calls with an
action button underneath to simulate a click on the action button.

I've worked quite a bit with Visual BASIC in VBA and also in Visual Studio,
but I'm not familiar at all with API; I will have to look into that.o
 
B

Bill Dilworth

I will see if I can get a working sample together while I'm on the road this
week. I'll shoot it over to you as time permits.

--
Bill Dilworth
A proud member of the Microsoft PPT MVP Team
Users helping fellow users.
http://billdilworth.mvps.org
-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
vestprog2@ Please read the PowerPoint FAQ pages.
yahoo. They answer most of our questions.
com www.pptfaq.com
..
 

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