Add an XML Option to the Excel Cell Right-Click Menu
Question details
The user wants to add an XML option to the Excel cell right-click menu.

- Product
- Microsoft 365 Excel
- Device & OS
- not provided
- Scenario
- A colleague has an XML command in the cell context menu, but the user cannot find it in their own installation or the Customize Ribbon command list.
- Observed behavior
- The XML command is missing from the user's cell right-click menu and is not available in the Customize Ribbon command list.
Ask your colleague which add-ins are enabled and whether the XML option appears in every workbook or only a particular file. Ribbon customization controls the Ribbon, not the cell right-click menu.
Check whether an add-in supplies the XML command
Use this approach to identify and install the same tool your colleague uses, if an add-in created the menu option.
In desktop Excel, open File > Options > Add-ins on both computers and compare the active add-ins.
At the bottom of the Add-ins page, select COM Add-ins or Excel Add-ins from Manage, then select Go to see which items are enabled.
If your colleague identifies an add-in that supplies the command, obtain it from a trusted source or your IT administrator, install it, and enable it in the appropriate add-in manager.
Restart Excel if required, open the same type of workbook, and right-click a cell to check for the XML option.

Create a custom XML menu entry with VBA
Use VBA in desktop Excel if no existing add-in provides the command and you can customize the menu.
Work with spreadsheets in WPS Office
WPS Office is a free, lightweight alternative with a familiar interface and support for common Excel formats, making it easy to move everyday spreadsheet work. It does not add commands to Microsoft Excel or replicate every Excel XML feature.

Frequently Asked Questions
Why can't I add the XML option through Customize Ribbon?
Customize Ribbon changes Ribbon tabs and groups, not the cell right-click menu. The option your colleague sees may come from an add-in or custom code.
Where can I find Excel's XML tools?
In desktop Excel, enable Developer under File > Options > Customize Ribbon if necessary. Then open the Developer tab and look for the XML group and Source command. These tools do not necessarily add an XML item to the cell context menu.
Will the VBA example add my colleague's XML feature?
No. It adds a custom context-menu button that displays a message. A developer must replace the message with code for the XML action you need.
Why did the custom menu entry disappear after restarting Excel?
The example creates a temporary menu entry. Open the macro-enabled workbook and run AddXMLMenu again using Alt+F8.




