transferring a macro from one powerpoint presentation to another

  • Thread starter Thread starter Mari
  • Start date Start date
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
 
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/
 
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/
 
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/
 
It opened up the debugger when I tried to copy it.
No. It shouldnt reference specific things. It's merely a helper tool.
 
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/
 
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.
 
It opened up the debugger when I tried to copy it.
No. It shouldnt reference specific things. It's merely a helper tool.

As the others say, that's a new one.

Another approach is to rightclick the module and choose Export File.

Then switch to the other presentation, right click in the area where the
modules are and choose Import File and browse to your just-exported module.

When you say "opened up the debugger", did you see an error message or ... what
exactly?

What's the caption at the top of the window that opens up?
 
Back
Top