Fix Word Add-In Context Menu Missing in Footnotes and Endnotes
Question details
Word add-in commands are not displaying in the right-click context menu when interacting with footnotes or endnotes.
- Product
- Microsoft Word
- Device & OS
- not provided
- Scenario
- Developing or using a Word add-in and attempting to access custom right-click commands within document footnotes or endnotes.
- Observed behavior
- The custom add-in command appears correctly in the main document body's context menu but is completely missing when right-clicking inside a footnote or endnote.
Ensure you have access to the add-in's source code or VBA project, as fixing this requires modifying the target CommandBar controls in the development environment.
Customize the Specific Footnote and Endnote CommandBars
Microsoft Word uses separate context menus for different document regions. You must explicitly add your custom controls to both the footnote and endnote menus.
By default, developers often add custom context menu items to `CommandBars("Text")`, which applies exclusively to the main document body. Because Word isolates context menus based on the document region, targeting only the text area will leave out headers, footers, footnotes, and endnotes. To make the menu items appear in these specific areas, you need to explicitly target their distinct CommandBar names.
Launch the VBA Editor or Visual Studio where your Word add-in source code is managed.
Find the function or module in your code where the custom right-click context menu controls are added to `CommandBars("Text")`.
Replicate your control addition logic and target it specifically to `CommandBars("Footnotes")` so the command displays when right-clicking a footnote.
Replicate the control addition logic again and target it to `CommandBars("Endnotes")` to ensure the command is available in endnote regions.
Save your code, reload the add-in in Microsoft Word, and right-click inside a footnote or endnote to verify the custom command now appears.

Try WPS Office for Seamless Document Management and Macro Support
If you frequently encounter complex add-in configuration issues in Microsoft Word, consider switching to WPS Office. It provides a lightweight, highly compatible environment with excellent support for VBA macros and document automation without the steep learning curve.
- 1. Download WPS Office: Visit the official WPS website and download the free WPS Office suite.
- 2. Open your documents: Launch WPS Writer and open your existing Word documents or macro-enabled files.
- 3. Manage macros easily: Navigate to the Developer tab to access the VBA Editor and manage your macros and add-ins seamlessly.

Frequently Asked Questions
Why does my custom context menu only appear in the main document body?
Microsoft Word isolates context menus based on the document region. If your add-in code only targets the 'Text' CommandBar, your custom menu will only display in the standard document body and will be hidden in headers, footers, footnotes, or endnotes.
How do I find the correct CommandBar name for other areas in Word?
You can iterate through the CommandBars collection in the VBA Editor using a simple 'For Each' loop and print the 'Name' property of each CommandBar to the Immediate Window. This helps you find the exact name of the right-click menu you wish to customize.
Can I use the same CommandBar control object for multiple menus?
No, each context menu (such as Text, Footnotes, Endnotes) requires its own distinct control customization. You must add the command separately to each CommandBar.




