Copying A Macro to Additional Excel Files

lkmw

Board Regular
Joined
Jul 1, 2005
Messages
53
Hello -- I'm new to macros and need some help...seems like this should be easy but I'm having trouble. The answer I found in Excel's HELP is not working for me.

I wrote a very simple macro in one excel file that prints several worksheets in the file. I want this same macro in additional Excel files. How do I copy it to the additional files?

Thanks
 

Excel Facts

Convert text numbers to real numbers
Select a column containing text numbers. Press Alt+D E F to quickly convert text to numbers. Faster than "Convert to Number"

Crow_23

Board Regular
Joined
Feb 17, 2005
Messages
183
You don't need to copy macros to other workbooks. Simply have the workbook open or hidden so that the macro will always be there. I usually designate one workbook for all macros to keep things central. To hide the workbook simply do a Window-->Hide
 
Upvote 0

KenCriss

Active Member
Joined
Jun 6, 2005
Messages
326
You can also export it in the VBE and then import it into whatever workbook you want it in.
 
Upvote 0

Forum statistics

Threads
1,195,858
Messages
6,011,979
Members
441,661
Latest member
Pammie007

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