Any way to transfer a macro from a workbook when moving a tab to a new book?

kajero

Board Regular
Joined
Jun 28, 2009
Messages
150
I know how to copy and paste code from a module into a new book or export and import the .bas file. The problem is the people who will be using the new worksheet in a new book have no idea what a macro even is. Is there any code that can be written so when a person selects a tab to be moved, the macro code would go with it? They could copy the entire file and delete the tabs they don't need, but that seems like it would confuse them as well. The file is 24 mb anyway so no one really wants to copy it, they just want to move their tab which results from a drilled down pivot table.

Once again, thanks again for all the help.

k
 

Excel Facts

Links? Where??
If Excel says you have links but you can't find them, go to Formulas, Name Manager. Look for old links to dead workbooks & delete.

Forum statistics

Threads
1,214,400
Messages
6,119,292
Members
448,885
Latest member
LokiSonic

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