Forum Discussion
perkin_warbeck
Mar 03, 2024Brass Contributor
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...
- Mar 05, 2024The 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
JKPieterse
Mar 04, 2024Silver Contributor
I don't know the answer I'm afraid. Does it help to clean the VBA project?
perkin_warbeck
Mar 04, 2024Brass Contributor
How do you recommend cleaning the project? Is there a tool you recommend?