Use VBA to rotate an object during a show

T

Tom Conrad

Powerpoint 2003.

I have a presentation that shows several objects against a polar coordinate
system.

My goal is to allow the user to interactively change the rotation angle of a
selected object by clicking on a horizontal scroll bar, during the
presentation. The scroll bar will include a display of the angle of rotation
(scrollbar value).

If it is not possible to dynamically change the angle (and redraw the
display), then I guess that an action button (macro) will be required to
redraw the display.

I understand some VBA syntax, but this level of coding is beyond my
experience.
 
T

Tom Conrad

John,

Thank you, it is exactly what I wanted to do.

I will have several objects on same slide, and at least three slides in the
presentation. I assume that I will need to add additional subroutines for
each object, label, and for each scollbar.

I have already modified the code to use a scroll bar vice a spin button.
(The scroll bar provides me the option of large & small increments.)
 
B

Brian Reilly, MVP

Try playing with a reference to the shape since you can't select it
during a slide show. This might help as a simple example that does
select the shape.

ActiveWindow.Selection.ShapeRange.IncrementRotation 334.15

Brian Reilly, MVP
 

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