How can I copy macros from Excel on one machine to another,is it possible to export and import them?Or maybe I could just copy the files,but where are they stored?I need to copy them so I can use them on my home pc and have created them at work.
(1) Open the xls file that has your macros
(2) Press Alt-F11. Now the Visual Basic Editor will open
(3) On the left hand side, you will see a "Project Explorer" window. Here, locate your file/project.
(4) Now, watch for "Modules". Here your macros will be residing in one or more modules. Let us assume there is just one module.
(5) Right Click on this module. "Export File..."
(6) Your macros will be exported to Yourname.bas
(7) Take these *.bas files wherever you want.
(8) Open the excel file where you want these macros to be loaded.
(9) Get to this project explorer, then from the File menu, try "Import File".
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.