Office for Mac Issues

How to Add Custom Icons to Word 365 for Mac Ribbon Macros

Amos GikundaAmos Gikunda Nov 3, 2026 869 views

Question details

The user wants to assign custom icons to macros on the Word 365 for Mac ribbon to differentiate them easily.

How to Add Custom Icons to Word 365 for Mac Ribbon Macros
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.
Before you start

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.

Solution 1Recommended

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.

1
Convert the file to a ZIP archive

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.

2
Create the customUI structure

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.

3
Add custom images

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.

4
Link images in the XML

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.

5
Repackage the file

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.

Modify the Ribbon XML and Office Package
XML Formatting: Ensure your XML code is perfectly formatted. Even a single missing bracket or typo will cause Word to ignore the custom ribbon entirely.
Free Microsoft Office alternative

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. 1. Download WPS Office: Visit the official WPS Office website and download the installation package designed for macOS.
  2. 2. Install and Launch: Follow the straightforward installation prompts, then launch WPS Office from your Applications folder.
  3. 3. Open Existing Documents: Directly open your existing Word documents and experience seamless formatting compatibility and an intuitive interface.
Fully compatible with Microsoft Word formats (.docx, .doc, .dotm)Lightweight and fast performance natively optimized for macOSClean, intuitive tabbed interface without complex XML configurationsFree to use for essential daily document creation and editing
QA img-9

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.