Excel Error Codes

How to Fix VB6 Excel Automation Error 80010105 After an Office Upgrade

Chanuka GeekiyanageChanuka Geekiyanage Oct 29, 2026 869 views

Question details

Users encounter runtime error 80010105 when running Visual Basic 6 (VB6) automation scripts after upgrading their Microsoft Office installation.

How to Fix VB6 Excel Automation Error 80010105 After an Office Upgrade
Product
Microsoft Excel
Device & OS
not provided
Scenario
Running a legacy VB6 application that automates Excel tasks, such as creating or saving workbooks, following a recent Microsoft Office version upgrade.
Observed behavior
The VB6 application throws Automation error 80010105 and fails to execute the Excel automation code, preventing workbooks from being generated or saved.
Before you start

Verify whether your newly installed Microsoft Office version is 32-bit or 64-bit, and ensure you have administrative privileges to modify application references and COM add-ins.

Solution 1Recommended

Update VB6 Project References and Verify Bitness

Correct mismatched library references and architecture differences between the old and new Office installations.

Visual Basic 6 is inherently a 32-bit application. If your recent Office upgrade installed a 64-bit version of Excel, the out-of-process COM automation may fail or require specific late-binding configurations. Additionally, the project may still be pointing to the older Excel Object Library.

1
Open Project References

Open your VB6 project, navigate to the 'Project' menu at the top, and select 'References'.

2
Remove Missing Libraries

Look for any items marked as 'MISSING: Microsoft Excel Object Library' and uncheck them to break the broken link.

3
Select Current Library

Scroll down the list and check the box for the current 'Microsoft Excel xx.0 Object Library' corresponding to your newly installed Office version.

4
Check Application Bitness

Open Excel, go to 'File' > 'Account' > 'About Excel' to check if it is 64-bit. If it is, consider utilizing late binding (using CreateObject instead of specific library references) in your VB6 code.

Update VB6 Project References and Verify Bitness
Late Binding Tip: Changing your code to declare objects simply as 'Object' rather than 'Excel.Application' can prevent future version-specific reference errors.
Free Microsoft Office alternative

Try WPS Office for Reliable Spreadsheet Management

If Microsoft Office upgrades and complex COM dependencies are causing persistent automation errors, consider switching to WPS Office. It provides an excellent, lightweight alternative with high compatibility for standard spreadsheet formats.

Highly compatible with Microsoft Excel (.xlsx, .xls, .xlsm) formats.Lightweight installation without complex registry and COM bloat.Familiar tabbed interface requiring zero learning curve.Free to download and use for your daily spreadsheet tasks.
QA img-9

Frequently Asked Questions

What causes automation error 80010105 in VB6?

This runtime error is typically caused by a mismatch in COM object references, conflicts with installed Excel add-ins, or differences between 32-bit and 64-bit application architectures after an Office upgrade.

Does upgrading Office from 32-bit to 64-bit break VB6 applications?

Yes, VB6 is a 32-bit development environment. If it attempts to interact with a 64-bit version of Excel using early binding (referencing the specific library), automation errors often occur. Transitioning to late binding can resolve many of these cross-architecture issues.

How can I safely test if my Excel automation code is working again?

Create a simple test subroutine in your VB6 application that only creates an Excel application object and makes it visible (e.g., set objExcel.Visible = True). If this basic code runs without error 80010105, your core application references are fixed.