How to Add Custom Icons to Word 365 for Mac Ribbon Macros
Question details
The user wants to assign custom icons to macros on the Word 365 for Mac ribbon to differentiate them easily.

- Product
- Word 365
- Device & OS
- macOS
- Scenario
- Customizing the ribbon interface to visually organize and identify different macros using custom images.
- Observed behavior
- Word for Mac assigns the exact same default icon to all macro buttons, lacking the built-in dialog box found in the Windows version to easily swap these icons.
Because adding custom icons on macOS requires modifying the underlying XML structure of your Office files, please create a complete backup of your Word documents or templates before proceeding.
Modify the Ribbon XML and Office Package
Manually edit the XML code of your Word document to assign specific custom image files to your macro buttons.
Customizing the ribbon on a Mac requires diving into the underlying XML structure of your Word template (.dotm) or document. Unlike the Windows version, macOS does not have a native, built-in dialog for swapping macro icons, making this a technical workaround.
Locate your macro-enabled Word template (.dotm) or document in Finder. Change the file extension from .dotm to .zip, and double-click to extract the internal folders.
Inside the extracted folder, create a new folder named 'customUI'. Inside this folder, create a 'customUI.xml' file to define your custom ribbon tab, grouping, and macro buttons.
Create an 'images' folder inside the 'customUI' folder. Place the custom icon files (e.g., PNG format) you want to use for your macros into this directory.
Open the 'customUI.xml' file in a text editor. Use the 'image' attribute within your XML button tags to reference the exact filenames of the icons you placed in the images folder.
Select all the extracted files and folders, compress them back into a single ZIP archive, and rename the file extension back to .dotm. Open the file in Word for Mac to see your custom ribbon icons.

Customize Macros Using a Windows Virtual Machine
Utilize a Windows environment where customizing macro icons in the ribbon is a built-in, code-free feature.
Try WPS Office for a Streamlined Document Experience
If managing complex XML files and manual Ribbon modifications in Microsoft Word for Mac feels overly frustrating, consider switching to WPS Office. It provides a lightweight, highly compatible alternative with an intuitive interface that makes document editing straightforward and hassle-free without requiring coding workarounds.
- 1. Download WPS Office: Visit the official WPS Office website and download the installation package designed for macOS.
- 2. Install and Launch: Follow the straightforward installation prompts, then launch WPS Office from your Applications folder.
- 3. Open Existing Documents: Directly open your existing Word documents and experience seamless formatting compatibility and an intuitive interface.

Frequently Asked Questions
Why do all my macros have the same default icon in Word for Mac?
By default, Word for Mac lacks the built-in user interface dialog found in the Windows version to easily change macro icons. As a result, it automatically assigns a generic default icon to every macro you add to the ribbon.
Can I use the built-in Microsoft Office icons instead of my own custom images?
Yes. When editing the customUI.xml file, you can use the 'imageMso' attribute instead of the 'image' attribute to reference the specific IDs of built-in Office icons, which eliminates the need to manually add external image files to the package.
Where are the default Word macro icons stored on a Mac?
The built-in icons are typically stored deep within the application package or resource fork of the Word program file itself. They are not easily accessible as separate image files, which is why XML ribbon customization is required.




