Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 10-24-2016, 10:38 AM
MAtkins MAtkins is offline Word 2016: How do I make custom icons appear in the QAT? Windows 10 Word 2016: How do I make custom icons appear in the QAT? Office 2016
Novice
Word 2016: How do I make custom icons appear in the QAT?
 
Join Date: Jul 2016
Posts: 13
MAtkins is on a distinguished road
Default 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
Reply With Quote
  #2  
Old 10-24-2016, 06:47 PM
Charles Kenyon Charles Kenyon is offline Word 2016: How do I make custom icons appear in the QAT? Windows 8 Word 2016: How do I make custom icons appear in the QAT? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,123
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

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
Reply With Quote
  #3  
Old 10-31-2016, 10:38 AM
MAtkins MAtkins is offline Word 2016: How do I make custom icons appear in the QAT? Windows 10 Word 2016: How do I make custom icons appear in the QAT? Office 2016
Novice
Word 2016: How do I make custom icons appear in the QAT?
 
Join Date: Jul 2016
Posts: 13
MAtkins is on a distinguished road
Default

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>
I did get these to show up in the QAT (whew!) but the macros still don't work.
They still throw the same useless error.
Reply With Quote
  #4  
Old 10-31-2016, 12:59 PM
Charles Kenyon Charles Kenyon is offline Word 2016: How do I make custom icons appear in the QAT? Windows 8 Word 2016: How do I make custom icons appear in the QAT? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,123
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

Once you have the tab set up and those buttons working you can put them on the QAT from within the Word interface.
  1. Open your template that holds the macros and custom tab (I assume it to be the same template).
  2. Go to your QAT dropdown on the right and choose more commands.
  3. Set it to save in your template.
  4. From the list on the left choose your custom tab.
  5. Pick your commands and move them to the QAT.
  6. Save your templatce and close Word.
  7. If you want go into your editor and make your tab not visible.
  8. Make sure your template is stored in the Startup folder.
  9. Restart Word.


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
Reply With Quote
  #5  
Old 10-31-2016, 01:36 PM
MAtkins MAtkins is offline Word 2016: How do I make custom icons appear in the QAT? Windows 10 Word 2016: How do I make custom icons appear in the QAT? Office 2016
Novice
Word 2016: How do I make custom icons appear in the QAT?
 
Join Date: Jul 2016
Posts: 13
MAtkins is on a distinguished road
Default

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.
Reply With Quote
  #6  
Old 11-01-2016, 11:09 AM
Charles Kenyon Charles Kenyon is offline Word 2016: How do I make custom icons appear in the QAT? Windows 8 Word 2016: How do I make custom icons appear in the QAT? Office 2013
Moderator
 
Join Date: Mar 2012
Location: Sun Prairie, Wisconsin
Posts: 9,123
Charles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant futureCharles Kenyon has a brilliant future
Default

I ran into a similar problem a while back. It is hard to remember that parameter if you don't do this regularly.
Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Word 2016: How do I make custom icons appear in the QAT? Visio 2016 diagrams embeded in word 2016 not drawing properly stubbo66 Visio 2 08-24-2016 05:58 PM
Word 2016: How do I make custom icons appear in the QAT? 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
Word 2016: How do I make custom icons appear in the QAT? 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

Other Forums: Access Forums

All times are GMT -7. The time now is 04:40 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2024 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft