Co-author an Excel Macro-Enabled Workbook on Multiple PCs
Question details
The user wants multiple people to edit an Excel workbook containing VBA macros at the same time.

- Product
- Microsoft Excel for Microsoft 365
- Device & OS
- not provided
- Scenario
- Several users need to work with the same macro-enabled workbook from different PCs.
- Observed behavior
- The desired result is simultaneous workbook editing while accounting for VBA and co-authoring limitations.
Confirm that the workbook is saved as an .xlsm file and that users can access the same OneDrive or SharePoint location. Check that desktop users have a version of Excel that supports co-authoring.
Share the workbook through OneDrive or SharePoint
Use Microsoft 365 co-authoring when users need to edit workbook data simultaneously.
Excel for the web can open and edit a macro-enabled workbook, but it cannot run VBA macros. Users who need to run macros should use a compatible desktop version of Excel.
Avoid changing VBA code while others are editing the workbook; macro and co-authoring behavior can vary by Excel version and workbook features.
In Excel, select File > Save As and save the .xlsm workbook to OneDrive or a SharePoint document library.
Select Share, enter the users' names or email addresses, and give them permission to edit.
Ask each user to open the same shared link in Excel for the web or a co-authoring-supported desktop version of Excel.
In desktop Excel, turn on AutoSave if available, then have users make test edits in separate cells and confirm that the changes appear for everyone.

Separate shared data entry from the VBA interface
Use a shared data source when simultaneous entry must be more reliable than editing a macro-driven workbook together.
Work with Excel spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar spreadsheet interface and support for Microsoft Office formats, making it easy to move everyday spreadsheet work. Test macro-enabled files before migrating: WPS does not resolve Microsoft Excel co-authoring limitations, and VBA support may vary.

Frequently Asked Questions
Can multiple people edit an .xlsm workbook at once?
Yes, co-authoring may be available when the workbook is stored on OneDrive or SharePoint and users open it in supported versions of Excel. Test the workbook's features and macros with your users before relying on the setup.
Can I run VBA macros in Excel for the web?
No. Excel for the web can open and edit macro-enabled workbooks, but it cannot run VBA macros. Open the shared file in a compatible desktop version of Excel to run them.
What should I do if co-authoring is unavailable?
Check that the file is in OneDrive or SharePoint, that users have editing permission, and that their Excel versions support co-authoring. Unsupported workbook features can also interfere with co-authoring.
How can users enter data without editing the macro workbook together?
Collect records through Microsoft Forms, Power Apps, or a database, then use Excel's Data > Get Data options to connect the workbook to the shared source.




