Taking Macros into other workbooks

Maui

Board Regular
Joined
Jan 13, 2006
Messages
159
I have a macro that takes 6 worksheets to another tab and saves them as a file name.

Within one of these tabs is a button that should connect to a print macro. when I move the tabs into new workbook the macro is lost as it is in the orginal workbook. This newly saved workbook is to be emailled so I need a way of getting the macro in the new workbook.


I am sure this is possible I just dont know how to do it.



Any ideas


Thansk in advance


Maui
 

Excel Facts

Can Excel fill bagel flavors?
You can teach Excel a new custom list. Type the list in cells, File, Options, Advanced, Edit Custom Lists, Import, OK

tony0682

Board Regular
Joined
May 19, 2005
Messages
164
Open the macro on the old one.. Copy the code and create a new macro in the new one and paste it. o_O
 

Maui

Board Regular
Joined
Jan 13, 2006
Messages
159
Can this be done in recorder so it stays there. I want it to be seemless.
 

Forum statistics

Threads
1,141,757
Messages
5,708,355
Members
421,566
Latest member
7Nabisco

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