Excel Copy VBA Module to Different Workbook #shorts

If you like this content, please consider visiting the video on YouTube and subscribe to the MrExcel Channel to show your support!
This video has been published on Apr 4, 2023.
Microsoft Excel - Copying VBA Module from one workbook to another.
John B has a workbook with a lot of data.
He created a new workbook with a macro for testing. Now that the macro is working, he wants to copy the working macro from the test workbook to the workbook with all of his data.
This video shows how to launch the VBA Editor with Alt F11
Display the Project Explorer.
Drag the module from one workbook to another.

Remember to Save As the workbook as XLSB or XLSM. If you leave the workbook as XLSX, your macros will be removed.

Topics:
how to copy Excel vba?
how to copy macro Excel?
How Do I Copy A Macro Fromone Excelfile To Another?
How To Copy A Macro From One Excel To Another
How To Copy A Macro From One Excel Workbook To Another
How To Copy A Macro In Excel
maxresdefault.jpg


Transcript of the video:
John B wants to copy VBA code from a new workbook to an old workbook.
He has this version with all of his data, but this small version has a macro that's working.
Press Alt+F11 View, Project Explorer.
Find the two workbooks.
Here's the module that he wants to copy.
Just drag the module from here, to there.
Super important.
If this workbook is saved as XLSX, you have to do File, Save As.
And change the file type into XLSB or XLSM or you'll lose the macros.
If you like these videos, please, down below, Like, Subscribe and Ring the Bell.
Feel free to post any questions or comments down in the comments below.
 
I like the new '#shorts' format, as it requires the creator to distill the info and squeeze out clear information. Nice.
 

Forum statistics

Threads
1,224,856
Messages
6,181,427
Members
453,040
Latest member
Santero

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