ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Programming (https://www.excelbanter.com/excel-programming/)
-   -   how can i copy a macro to another pc (https://www.excelbanter.com/excel-programming/280659-how-can-i-copy-macro-another-pc.html)

tom[_4_]

how can i copy a macro to another pc
 
hi
i am trying to copy a complicated macro to another pc ( primarily for safe keeping)

any ideas?

Tom

Chip Pearson

how can i copy a macro to another pc
 
Tom,

All macros are stored in workbooks, so you can simply copy the workbook file
to the other PC. Alternatively, you can export the module containing the
macro to a text file (with a "bas" file extension) and copy that file to the
other PC.


--
Cordially,
Chip Pearson
Microsoft MVP - Excel
Pearson Software Consulting, LLC
www.cpearson.com


"tom" wrote in message
om...
hi
i am trying to copy a complicated macro to another pc ( primarily for safe

keeping)

any ideas?

Tom




Tom Ogilvy

how can i copy a macro to another pc
 
Export the macro to a .Bas file from the VBE. Import it into the new
workbook

To do either, go to the project explorer and right click on the module name
or the Modules entry.

--
Regards,
Tom Ogilvy



"tom" wrote in message
om...
hi
i am trying to copy a complicated macro to another pc ( primarily for safe

keeping)

any ideas?

Tom




merjet

how can i copy a macro to another pc
 
i am trying to copy a complicated macro to another pc

Use the menu File | Export File to create a *.bas file.

HTH,
Merjet




All times are GMT +1. The time now is 03:58 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
ExcelBanter.com