VBA & Macro Problems

Fix Excel VBA Macro That Works in Microsoft 365 but Fails in Office 2019

Huda QurayshiHuda Qurayshi Nov 13, 2026 869 views

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.

Fix Excel VBA Macro That Works in Microsoft 365 but Fails in Office 2019
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.
Before you start

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.

Solution 1Recommended

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.

1
Open Excel in Microsoft 365 Family

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.

2
Check Excel in Office 2019 Business

Open Excel in Office 2019 Business on the other computer, click File > Account > About Excel, and record its architecture and build number.

3
Compare the two installations

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.

Check the Office architecture and version on both computers
Keep the exact error message ready: If the architectures match, record the full error message and line number before deeper macro troubleshooting.
Free Microsoft Office alternative

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.

Free to download and use for home, business, and personal Excel-compatible work.Opens, edits, and saves Excel .xlsx and .xls files with Microsoft Office format compatibility.Lightweight and familiar ribbon-based interface that reduces the learning curve from Microsoft Excel.Provides a separate environment to open and inspect VBA-enabled Excel workbooks for troubleshooting.Easily coexists with Microsoft 365 and Office 2019 so you can test files without uninstalling Office.
microsoft office alternative - wps office

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.