Search code examples
excel-2010add-inribbonx

Add tooltip to Excel Add-in Custom Ribbon UI XML


I am creating an Excel Add-In that has a custom Ribbon UI. I would like to add a tooltip for my buttons. What XML attributes can I use to set this?

<button id="insertStuff" label="Insert Stuff" size="large" onAction="InsertStuff_EventHandler" imageMso="AddAccount" />

Solution

  • You can use "screentip" and "supertip":

    <button id="insertStuff" screentip="Tooltip title" supertip="Long description" ...
    

    BTW, you should have autocomplete normally when you edit the ribbon XML in VS. If you don't make sure you have Ribbon schema file available.