Run macros programmatically?

  • Thread starter Thread starter Øystein Eriksen
  • Start date Start date
What do you mean by "run macros programatically"? If you have two
macros, you can call one from the other. See example 5.5 from my web
site (click on Examples by Chapter and go to Chapter 5):

http://www.loyola.edu/education/PowerfulPowerPoint/

I'm guessing you want something more complicated than this. Please let
us know what.

--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
I want to make a powerpoint presentation with a slide containing a picture
which are splitted like a puzzle with for example 6 pieces.
Then I want to use 6 command buttons to view each piece of the
picture/puzzle so I can use it like a game where the players select a piece
of the picture one by one. The winner is the player that first guess what
the picture show (for example a horse, a bird, a flower, a car etc).
Any ideas how I can make this. Maybe there is any other software which is
working better for this use?

Øystein Eriksen
 
This is relatively simple, without Macros, if you are using PowerPoint 2002
or 2003. A simple trigger animation will allow you to click one object and
have another appear/disappear.

Here's how I would do it,

1 - Create a new slide
Insert | New Slide

2 - Insert the picture you will be revealing
Insert | Picture | From File

3 - Insert a star at the top of the screen
AutoShapes | Stars and Banners | 5-point Star

4 - Insert a rectangle over part of the picture
AutoShapes | Basic Shapes | Rectangle

5 - Change fill & border of rectangle
select rectangle | Format | Autoshapes... | Fill | Background
Line | None | OK

6 - Add a custom EXIT animation on the rectangle
SlideShow | Custom Animation
(with Rectangle still selected) Add Effect | Exit | Fade

7 - Set the Trigger in the custom animations pane
{pulldown} Rectangle ? | Timing | {button} Triggers | Start effect on click
of: | 5-Point Star

8 - Select the pair (formatted rectangle and star) - Copy (Ctl + C) & paste
(Ctl + V) as many times as will be needed for the squares to cover the
picture.

9 - Arrange the rectangles to cover the picture

10 - Arrange the stars to look pretty

11 - Run the slide

Whenever a star is clicked, the affiliated rectangle will fade out and
reveal a portion of the picture. You can also use the same trigger to cause
the activated star to fade out as well, thus limiting the ability to click
on one star more than once.

Make sense?

--
Bill Dilworth, Microsoft PPT MVP
===============
Please spend a few minutes checking vestprog2@
out www.pptfaq.com This link will yahoo.
answer most of our questions, before com
you think to ask them.

Change org to com to defuse anti-spam,
ant-virus, anti-nuisance misdirection.
..
..
 
It's also easy with macros, and the macros will work with all versions of
PowerPoint starting with 97. Of course, if the animation works for you,
that is always easier than fiddling with macros.

If you have the picture in pieces, you can lay it out on your slide and
use hide and show features to hide or show the various parts. For
example:

ActivePresentation.SlideShowWindow.View.Slide.Shapes(1).Visible = False

hides the first shape on the current slide. Change the False to True and
you an show that shape. Change the 1 to some other number to hide or
show other shapes.

If the picture is all one piece, just put white boxes on top of it, and
hide the white boxes. This exact thing is not described at my web site,
but using macros to hide and show objects is. Check out the examples in
Chapter 6 at:

http://www.loyola.edu/education/PowerfulPowerPoint/

Another adavantage of using macros is that you could make the game more
complicated by requiring questions to be answered before revealing pieces
of the picture (a right answer reveals a square; a wrong answer does
not). I think I have an example like that. Send me email (remove the
NOSPAM from my email address), and I will try to find the example and
send it to you.

Let us know if you have any questions.

--David

--
David M. Marcovitz, Ph.D.
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 
Back
Top