How do I move a Macro from Personal.xls to another workbook?

sunday_storyteller

Board Regular
Joined
Jun 22, 2007
Messages
51
I have several Maros in Personal.xls. I would like those Macros to be available to other people. The Macros act entirely on a workbook called Template.xls. I would like, therefore to move the Macros to reside in Template.xls instead of Personal.xls.

How can I do this without re-writing/re-recording them?

Thanks!

Calinda
 

Excel Facts

Fastest way to copy a worksheet?
Hold down the Ctrl key while dragging tab for Sheet1 to the right. Excel will make a copy of the worksheet.

Datsmart

Well-known Member
Joined
Jun 19, 2003
Messages
7,985
Open VBE (Alt-F11)
Find the code in your Personal.xls project.
Copy and paste to the module in your other workbook.
 

sunday_storyteller

Board Regular
Joined
Jun 22, 2007
Messages
51
Thank you so much! You are so helpful. :)

That saved me hours of work...probably a full day's worth. Because there were alot of macros.
 
Master Excel Bundle

Excel contains over 450 functions, with more added every year. That’s a huge number, so where should you start? Right here with this bundle.

Forum statistics

Threads
1,164,271
Messages
5,836,323
Members
430,420
Latest member
Sensen

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Top