Fix Excel VBA Macro That Works in Microsoft 365 but Fails in Office 2019
Question details
The user needs to determine why a VBA macro runs correctly in Microsoft 365 Family but fails in Office 2019 Business when it uses selections, worksheet navigation, offsets, formulas, and cross-sheet calculations.

- Product
- Microsoft Excel 365 Family and Microsoft Excel 2019 Business
- Device & OS
- not provided
- Scenario
- The user maintains a multi-sheet Excel workbook with VBA code that works on one Microsoft Office installation but not another.
- Observed behavior
- The macro completes successfully in Microsoft 365 Family, but stops or produces an error in Office 2019 Business.
Open both Excel installations and go to File > Account > About Excel to record the Office architecture (32-bit or 64-bit), version, and build number. Also write down the exact error message and the line where the macro stops before making any changes.
Check the Office architecture and version on both computers
Use this first because 32-bit and 64-bit Office installations can handle VBA and legacy references differently.
VBA macros often fail when a workbook moves between different Office architectures or update levels. Office 2019 and Microsoft 365 may also have different available object model updates.
Open a workbook in Microsoft 365 Family, click File > Account > About Excel, and note whether the installation is 32-bit or 64-bit and the build number.
Open Excel in Office 2019 Business on the other computer, click File > Account > About Excel, and record its architecture and build number.
If one installation is 32-bit and the other is 64-bit, the macro should be updated or tested in the same architecture that the other users will run.

Audit the macro for unqualified Range, Selection, and worksheet references
Use this when the architecture matches but the macro still fails on the Office 2019 machine.
Reproduce the failure and capture the exact macro error
Use this when you need to isolate the failing line or prepare the workbook for detailed troubleshooting.
Use WPS Office as a Free, Compatible Alternative for Excel VBA Workbooks
If the macro remains unreliable between Microsoft 365 Family and Office 2019 Business, try opening the workbook in WPS Office. It is a free, lightweight Office alternative with a familiar spreadsheet interface and strong Microsoft Excel file compatibility, which makes it useful for inspecting and testing your files without changing your current Office installation.

Frequently Asked Questions
Why does an Excel VBA macro work in Microsoft 365 Family but fail in Office 2019 Business?
The most common causes are different Office architectures, different Office updates, missing references, or VBA code that depends on a specific active worksheet. Compare File > Account > About Excel on both computers and then review the macro for unqualified Range or Selection objects.
How do I check whether my Excel installation is 32-bit or 64-bit?
Open Excel and go to File > Account > About Excel. The About Excel dialog shows the version, build, and whether the installation is 32-bit or 64-bit. Check this on both the Microsoft 365 Family and Office 2019 Business computers.
What VBA code changes make a macro more compatible across Excel versions?
Replace unqualified references such as Selection, ActiveSheet, ActiveWorkbook, and Range with explicit worksheet and workbook qualifiers. Then click Debug > Compile VBA Project in the VBA editor to catch unsupported references or compile errors before running the macro.
Can WPS Office open an Excel workbook that contains VBA macros?
WPS Office can open Excel .xlsx and .xls files and provides spreadsheet tools for inspecting VBA-enabled workbooks. Macro support can vary depending on the code and references, so test your specific file in WPS Office before distributing it.
What information should I provide for advanced VBA macro troubleshooting?
Provide a sanitized copy of the workbook, the exact error number and message, the Office version and architecture from both computers, and the steps that reproduce the failure.




