Forum Discussion

perkin_warbeck's avatar
perkin_warbeck
Brass Contributor
Mar 03, 2024
Solved

Porting an Excel VBA application from Windows to Mac

I have Office 365 on a PC running Windows 11 and on a Mac Mini running Sonoma. I develop on Widows. After testing thoroughly, I copy the .xlsm file over to Mac for testing there. I have been doing th...
  • JKPieterse's avatar
    JKPieterse
    Mar 05, 2024
    The only tool I know of only works in 32 bit Office. You can clean a project manually like this:
    - Save-as the file as xlsx (yes, the VBA code is lost, this is on purpose)
    - Close and reopen the newly saved file and the original one with the code
    - Drag all modules, userform and class modules from the xlsm to the xlsx
    - Copy code from all sheet modules to the appropriate sheet modules of the xlsx
    - Copy code in ThisWorkbook too.
    - Make sure the correct references are set
    - Save As the xlsx to xlsm
    You could also use this tool to copy the VBA project from the xlsm to the xlsx: https://jkp-ads.com/download.asp#CopyVBAProject

Resources