#1
|
|||
|
|||
Word 2016: How do I make custom icons appear in the QAT?
I'm trying to add custom icons I created in Photoshop to show up in my Word 2016 docm file.
I've read and tried to use Greg Maxey's posts but they don't work in Word 2016. For example, after I *finally* found the 'Custom UI Editor' I tried loading the .docm file. I already have macros set up in the .docm and the QAT in the docm successfully runs the macros. The only problem is, they all use the same 'built in' icon. So, Greg says I was supposed to see a CustomUI.xml file and I could just click 'insert icons', then load the icons into the docm. NOT SO. There is no CustomUI.xml file shown and the 'insert icon' button & menu item don't work. I did successfully create a .zip file of the docm and in the zip, inside the 'userCustomization' folder, the CustomUI.xml file actually does exist. I tried editing that but Word ignored my image="icoRF" attribute and replaced it with the dreaded green circle. So, how do I *really* get custom icons onto the QAT in Word 2016?? Last edited by Charles Kenyon; 11-01-2016 at 09:28 AM. Reason: Mark as solved |
#2
|
|||
|
|||
You try again.
While Greg's page is not the easiest read, that is how you do it. It works in Word 2016 the same way it does in Word 2007, 2010, and 2013. Modify Quick Access Toolbar (QAT) Button Image or Text If you want custom icons that are not used in Office at all, I believe you'll need to create a custom Ribbon Tab accessing your macros. Then transfer the buttons with the custom images to the QAT. If all you want is one of the icons available in Office then you can use the msoID. Modifying the QAT in Microsoft Word |
#3
|
|||
|
|||
I still can't find a way to get custom icons on the QAT that call VBA macros.
I've been developing Microsoft code since 1994 and am certified in Visual Basic 5.0. I did finally get a tab to show up in the ribbon with my icons loaded but they don't work. I'm getting an error saying: 'Wrong number of arguments or invalid property assignment'. The 'macros' are simply VBA public scoped Sub procedures that put the cursor on a specific line in the doc depending on which 'macro' was called. The procs don't have arguments and no properties are changed. I should state that they run if I pull them up in the Developer tab or hit the shortcut key to them. I also had them on the QAT with a stock icon. The macros run just fine. Before I attempt to get these into the QAT, how do I make these VBA macros run? Code:
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="RibbonControl.Onload"> <ribbon> <tabs> <tab id="TabNav1" label="Inspectagator Sections" > <group id="customGroup" label="Custom Group"> <button id="btngoToRoofing" label="Roofing" image="icoRF" onAction="goToRoofing"/> <button id="btngoToExterior" label="Exterior" image="icoEX" onAction="goToExterior"/> <button id="btngoToGarage" label="Garage" image="icoGG" onAction="goToGarage"/> <button id="btngoToPlumbing" label="Plumbing" image="icoPL" onAction="goToPlumbing"/> <button id="btngoToAttic" label="Attic" image="icoAT" onAction="goToAttic"/> <button id="btngoToElectrical" label="Electrical" image="icoEL" onAction="goToElectrical"/> <button id="btngoToMechanical" label="Mechanical" image="icoME" onAction="goToMechanical"/> <button id="btngoToKitchen" label="Kitchen" image="icoKI" onAction="goToKitchen"/> <button id="btngoToInterior" label="Interior" image="icoIN" onAction="goToInterior"/> <button id="btngoToBedrooms" label="Bedrooms" image="icoBD" onAction="goToBedrooms"/> <button id="btngoToBathrooms" label="Bathrooms" image="icoBT" onAction="goToBathrooms"/> <button id="btngoToPool" label="Pool" image="icoPO" onAction="goToPool"/> </group> </tab> </tabs> </ribbon> </customUI> They still throw the same useless error. |
#4
|
|||
|
|||
Once you have the tab set up and those buttons working you can put them on the QAT from within the Word interface.
If you want, send me your template (with a reference to this question) and I'll take a look at it. Ribbon XML is a bit arcane. [email removed for privacy.] Last edited by Charles Kenyon; 11-01-2016 at 11:09 AM. Reason: remove email address |
#5
|
|||
|
|||
Thanks for your response.
My problem was specifically that I couldn't get the macro to work. I did successfully get the buttons onto the QAT. I figured it out. The sub proc for the buttons *required* that I add a parameter like: Public Sub goToRoofingQAT(control As IRibbonControl) Finally, I've got the buttons onto the QAT and they work. Hopefully I finally have a happy client. |
#6
|
|||
|
|||
I ran into a similar problem a while back. It is hard to remember that parameter if you don't do this regularly.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Visio 2016 diagrams embeded in word 2016 not drawing properly | stubbo66 | Visio | 2 | 08-24-2016 05:58 PM |
make a .csv file of Address Book Outlook 2016 | topdog | Outlook | 6 | 04-19-2016 11:39 AM |
Master slide placeholder text - make completely custom for each layout | lhulmef | PowerPoint | 1 | 03-25-2015 03:03 PM |
How to make Quick Access Toolbar icons smaller in XP | WaltR | Word | 1 | 04-09-2012 11:42 AM |
outlook 2003 custom email rule icons | pgasparr | Outlook | 0 | 06-29-2011 06:16 AM |