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
 

Some videos you may like

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.

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.
 

Watch MrExcel Video

Forum statistics

Threads
1,122,516
Messages
5,596,617
Members
414,081
Latest member
Subaru_Steve

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