How to move macro module from one Mac computer to a different Mac computer

Caroline Lamantia 20 Reputation points
2026-07-06T22:25:32.4266667+00:00

I created macros on my Mac computer at home and then have to re-create them on the Mac computers at work. Is there a way to copy a macro module from one Mac computer to a different Mac computer. And, no, we don't use OneDrive. Thanks.

Microsoft 365 and Office | Excel | For business | MacOS
0 comments No comments

Answer accepted by question author
Darren-Ng 12,775 Reputation points Microsoft External Staff Moderator
2026-07-06T23:42:05.1666667+00:00

Dear @Caroline Lamantia,

Thank you for posting your question in the Microsoft Q&A forum.

Based on your description, you wonder would it be possible to transfer VBA macro modules from one Mac computer to another without recreating them manually.

You can transfer VBA macro modules between Mac computers without recreating them.

Try export and import the VBA Module

On your source Mac:

  1. Open the workbook that contains the macro.
  2. Open the Visual Basic Editor.
  3. Right-click the module under Modules and select Export File.
  4. Save the module as a.bas file

Transfer the .bas file to the other Mac using AirDrop, USB drive, email, or another file-sharing method.

On the destination Mac:

  1. Open the target workbook.
  2. Open the Visual Basic Editor.
  3. Right-click the workbook or Modules folder and select Import File.
  4. Browse to the exported .bas file and import it.

Alternative Option

If the macros are stored within a specific workbook, you can simply copy the macro-enabled workbook (.xlsm) to the other Mac. The macros will be included in the workbook.

For reference

Copy a macro module to another workbook

Import and shape data in Excel for Mac (Power Query)

I hope information above meet your expectation, if you have any other questions, please feel free to reach out.


If the answer is helpful, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".

Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

Was this answer helpful?

1 person found this answer helpful.

0 additional answers

Sort by: Newest

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.