Global Macros? Relative References?

L

LizW

Hi there,

Two Questions:

1. I can record macros for one presentation, and put them
on a toolbar for the user. After I close PowerPoint, the
toolbar is still there, but the buttons don't work and
when I look in Tools, Macros, they don't show. How to make
this macro work across all presentations?

2. If I record a macro and use an object that I want to
copy and paste, it calls the object in the VB something
like "Picture 23". So I can't use the macro in the future
with another object because it is looking for Picture 23.
Can I edit this reference to a specific object name given
by PowerPoint to make a relative not absolute reference?

Thanks
 
D

David M. Marcovitz

1. When you record a macro, it is stored in the presentation. If you want a
macro to be available to all presentations on your machine, you need an
add-in. You can find more information here:

http://www.rdpslides.com/pptfaq/FAQ00031.htm

2. Usually, macros that run in Normal View reference the selected object,
rather than a specific object. If you post the code for your macro, someone
might be able to offer specific suggestions, but the general idea is to
access a selected shape with

ActiveWindow.Selection.ShapeRange

If you use this format, it will not need the shape name or number. Instead
it will work on whatever shape is selected.

--David

David M. Marcovitz
Author of _Powerful PowerPoint for Educators_
http://www.loyola.edu/education/PowerfulPowerPoint/
 

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