Beginner Macro Writing

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I am trying to write a simple macro, to run during a presentation. When I
click on a given object, I want that object to "Go To Back". I can get this
macro recorded and can get it to run during an editing session, but when I
try to assign it to an object so I can activate it during a presentation,
nothing happens.
 
Macros for slide show mode work much differently than macros for Edit
mode. You have probably written something that works with the selected
object. Instead, you want to name the object and work with the object by
name.

If you go to Example 8.7 on my site (http://www.PowerfulPowerPoint.com/),
you will see some code for naming objects. Then you could do something
like:

ActivePresentation.SlideShowWindow.View.Slide.Shapes("MyShape").zOrder _
msoSendToBack

Alternatively, if a click on the shape itself should move the shape to
the back, try assigning the following macro to the shape:

Sub MoveItBack(oShp As Shape)
oShp.ZOrder msoSendToBack
End Sub


--
David M. Marcovitz
Microsoft PowerPoint MVP
Director of Graduate Programs in Educational Technology
Loyola College in Maryland
Author of _Powerful PowerPoint for Educators_
http://www.PowerfulPowerPoint.com/
 
Back
Top