transferring a macro from one powerpoint presentation to another

M

Mari

Hi,
I have a macro that is in one powerpoint presentation. What's the best
way to transfer that macro to another powerpoint presentation? Thanks
 
D

David M. Marcovitz

Open the Visual Basic Editor, and open your module. Copy all the code and
then paste it into a module for the other presentation. To avoid confusion,
it might be easier to close the first presentation before opening the
second. I always get confused about which module goes with which
presentation when I have two presentations with macros open.
--David

--
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/
 
M

Mari

I did try that. And it opened up the debugger.

David M. Marcovitz said:
Open the Visual Basic Editor, and open your module. Copy all the code and
then paste it into a module for the other presentation. To avoid confusion,
it might be easier to close the first presentation before opening the
second. I always get confused about which module goes with which
presentation when I have two presentations with macros open.
--David

--
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/
 
D

David M. Marcovitz

I think you'll have to be more specific. Did it open up the debugger when
you tried to run the macro or when you tried to copy it. Does the macro
reference specific things that might be present in one presentation and
not in the other? What does the macro do?
--David

--
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/
 
M

Mari

It opened up the debugger when I tried to copy it.
No. It shouldnt reference specific things. It's merely a helper tool.
 
D

David M. Marcovitz

That's strange. I've never seen that. I can just highlight the text in a
module and copy all the text by going to the Edit menu and choosing copy.
I can then open up a module in the new presentation and go to the Edit
menu and choose Paste. I never see the debugger when I do that.
--David

--
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/
 
J

John Wilson

Hard to see why your method is doing that, but for the record I normally have
both modules showing , highlight the macro and drag and drop into the other
module. Ive never seen the debugger.
 

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