Copy macros from one workbook to another

pboltonchina

Well-known Member
Joined
Apr 24, 2008
Messages
1,104
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

Control Word Wrap
Press Alt+Enter to move to a new row in a cell. Lets you control where the words wrap.
In the VBE you can use File > Export to export the module then in the other workbook File > Import.
 
Upvote 0
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,214,950
Messages
6,122,436
Members
449,083
Latest member
Ava19

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
Back
Top