VBA & Macro Problems

Fix Outlook WordEditor Errors in Excel VBA for Office 2016 and Microsoft 365

Jason MillerJason Miller Nov 25, 2026 869 views

Question details

Identify why an Excel VBA macro cannot access or use Outlook Inspector.WordEditor when formatting an appointment.

Fix Outlook WordEditor Errors in Excel VBA for Office 2016 and Microsoft 365
Product
Microsoft Excel VBA and Microsoft Outlook
Device & OS
Windows 10 on the comparison computer; original system not provided
Scenario
An Excel macro uses an Outlook appointment inspector to format the appointment in Office 2016 or Microsoft 365.
Observed behavior
The macro works in Office 2010 but produces operation errors in Office 2016 or Microsoft 365. The workbook also worked on another Windows 10 computer with Office 365.
Before you start

Open the workbook in Excel and locate the VBA statement that accesses Inspector.WordEditor. Confirm that the Outlook item being formatted is an appointment and that its inspector is available.

Solution 1Recommended

Check the Outlook inspector's editor before accessing WordEditor

Use this check to avoid accessing WordEditor when the appointment inspector is not using the Word editor.

1
Open the VBA procedure

In Excel, press Alt+F11 and open the module containing the Outlook appointment formatting macro.

2
Check the inspector editor type

After obtaining the appointment's Inspector, test `insp.EditorType = olEditorWord` before accessing `insp.WordEditor`. If you use the named Outlook constant in Excel VBA, enable Microsoft Outlook Object Library under Tools > References.

3
Handle other editor types

Put the existing WordEditor formatting code inside the matching If block. Add an Else branch to report that WordEditor is unavailable or use a different approach appropriate to the appointment.

4
Run the macro again

In the VBA editor, run the procedure with the appointment open and check whether the editor-type test passes before the formatting code executes.

Check the Outlook inspector's editor before accessing WordEditor
Appointments are not email messages: An Outlook appointment does not provide the MailItem.HTMLBody property. Do not substitute HTMLBody for WordEditor in appointment code.
Free Microsoft Office alternative

Work with Excel files in WPS Office

WPS Office is a free, lightweight alternative with a familiar interface for opening and editing Office files. It can help you move everyday spreadsheet work, although it does not fix Outlook WordEditor errors or guarantee compatibility with Outlook automation macros.

Open and edit spreadsheets with a familiar interfaceCompatible with Microsoft Excel formats such as XLSX and XLSMove routine spreadsheet work without relying on Outlook appointment automationUse a lightweight office suite for everyday documents
microsoft office alternative - wps office

Frequently Asked Questions

How do I check whether an Outlook inspector uses Word?

In the VBA procedure, test the inspector's EditorType against olEditorWord before accessing WordEditor. In Excel VBA, add the Microsoft Outlook Object Library under Tools > References if you use that named constant.

Can I use HTMLBody to format an Outlook appointment?

No. HTMLBody is a MailItem property and is not available on an AppointmentItem. If WordEditor is unavailable, the appointment needs a different approach.

Why does the workbook work on another computer?

A successful test elsewhere suggests an environment-specific difference. Compare the Office installations, VBA references, inspector editor type, and exact error message before drawing a conclusion.

Can Office 2010 and Microsoft 365 installed together cause this error?

The reported test does not establish that side-by-side installation caused the error. Check the installed versions under Settings > Apps and compare the affected computer with a working one.