Copy macros from one workbook to another

pboltonchina

Well-known Member
Joined
Apr 24, 2008
Messages
1,101
Hi Everyone,

I have all my macros stored in Personal which opens with Excel and that's fine. However, some of these macros need to be stored within a particular workbook so they are available to anyone opening that workbook. At the moment when I need to do this, I insert a module and manually copy and paste the required macros into the new module. I was just wondering if there was a quicker way to do this, like Importing Modules, or Copy Modules, or something that would make it a bit quicker and easier?

Thanks for looking at my post, any help greatly appreciated
 

Excel Facts

Format cells as currency
Select range and press Ctrl+Shift+4 to format cells as currency. (Shift 4 is the $ sign).

VoG

Legend
Joined
Jun 19, 2002
Messages
63,650
In the VBE you can use File > Export to export the module then in the other workbook File > Import.
 
Upvote 0

pboltonchina

Well-known Member
Joined
Apr 24, 2008
Messages
1,101
Thanks VoG, that works a treat. Can you do it with multiple modules at once, or is it a one at a time thing?
 
Upvote 0

Forum statistics

Threads
1,195,912
Messages
6,012,262
Members
441,688
Latest member
Chokladkaninen

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