Office Settings & Configuration

Hide Change Picture in the PowerPoint Right-Click Menu with Custom UI XML

Elise WilliamsElise Williams Nov 13, 2026 869 views

Question details

The user wants to hide the Change Picture option from PowerPoint’s picture right-click menu using Custom UI XML.

Hide Change Picture in the PowerPoint Right-Click Menu with Custom UI XML
Product
Microsoft PowerPoint
Device & OS
not provided
Scenario
Customize the picture context menu in an Office version where Change Picture is implemented as a menu rather than a button.
Observed behavior
Change Picture appears when a picture is right-clicked. In recent Office versions, the relevant control is PictureChangeMenu rather than the older PictureChange button.
Before you start

Check that your PowerPoint customization supports Office 2010-or-later Custom UI XML and that you have an Office Ribbon XML editor or an existing add-in customization workflow. If the file already contains Custom UI XML, edit that customization rather than adding a second customUI root.

Solution 1Recommended

Hide PictureChangeMenu in the PowerPoint picture context menu

Use this customization when Change Picture is a menu control in your PowerPoint version.

Target PictureChangeMenu inside ContextMenuPicture and set visible="false". Using a menu element is important because the newer control is not the older PictureChange button.

1
Open the Custom UI XML

Open the presentation or add-in that supplies your customization in an Office Ribbon XML editor. Select its Office 2010-or-later Custom UI part, which uses the http://schemas.microsoft.com/office/2009/07/customui namespace.

2
Add the menu visibility rule

For a new customization, insert this XML: <customUI xmlns="http://schemas.microsoft.com/office/2009/07/customui"><contextMenus><contextMenu idMso="ContextMenuPicture"><menu idMso="PictureChangeMenu" visible="false" /></contextMenu></contextMenus></customUI>. For an existing customization, merge the contextMenu entry into its contextMenus section.

3
Validate and save the customization

Run the XML editor’s validation command, if available, and save the file. Close the edited presentation or reload the add-in in PowerPoint so the updated Custom UI XML is loaded.

4
Check the picture context menu

Open the customized presentation or load the customized add-in in PowerPoint, then right-click a picture. Confirm that Change Picture no longer appears in the picture context menu.

Hide PictureChangeMenu in the PowerPoint picture context menu
This hides a menu entry, not the ability to replace pictures: The rule applies to the picture context menu within the customization’s scope. It does not automatically hide Ribbon commands or prevent users from replacing pictures through other actions.
Free Microsoft Office alternative

Use WPS Presentation for everyday slide and picture editing

WPS Office is a free, lightweight alternative with a familiar interface and PowerPoint format compatibility for an easy transition. WPS Presentation supports everyday slide and picture editing, but it does not fix Microsoft PowerPoint’s Custom UI XML behavior.

Edit pictures and slide layouts in WPS Presentation.Open and save Microsoft PowerPoint formats, including .ppt and .pptx.Use familiar presentation tools to simplify migration from Microsoft Office.Get a free, lightweight Office suite for everyday document tasks.
QA img-9

Frequently Asked Questions

Why does targeting PictureChange as a button not work?

In recent Office versions, the context-menu command is implemented as a menu. In your Custom UI XML, use <menu idMso="PictureChangeMenu" visible="false" /> inside the ContextMenuPicture entry instead of targeting the older PictureChange button.

Does this XML also hide Change Picture on the Ribbon?

No. The contextMenus section changes the right-click menu only. Hiding a Ribbon entry requires a separate Ribbon customization targeting the appropriate built-in control and location for your PowerPoint version.

Which Custom UI XML namespace should I use?

Use http://schemas.microsoft.com/office/2009/07/customui for this context-menu customization. In an Office Ribbon XML editor, select or create the Office 2010-or-later Custom UI part.

Why is Change Picture still visible after I save the XML?

Confirm that the XML targets ContextMenuPicture and uses a menu element with idMso="PictureChangeMenu" and visible="false". Validate the XML, then reopen the customized presentation or reload the add-in. Also confirm that the file or add-in containing the customization is actually loaded.

Will hiding Change Picture stop users from replacing images?

No. This customization only removes the specified context-menu entry. Users may still replace images through the Ribbon, delete and insert pictures, or use other editing methods.