+ Reply to Thread
Results 1 to 17 of 17

How to show a caption on custom controls on Quick Access toolbar

  1. #1
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    How to show a caption on custom controls on Quick Access toolbar

    How do I add a caption + custom icon for an attached macro/custom control, on the Quick Access Toolbar?

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to show a caption on custom controls on Quick Access toolbar

    1. Go to File - Options
    2. Select Quick Access Toolbar
    3. Under the "Choose Commands from" option, select Macros
    4. Select the required macro and hit the Add button
    5. Select the button in the right hand frame and select Modify
    6. Change the icon to the desired..

    I don't know about captions - I'm not sure that it is supported on the QAT
    Elegant Simplicity............. Not Always

  3. #3
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Thanks AndyLitch for your response,

    I know how to attache a macro to "QAT"
    My question is a "Caption"

    Built-in commands have their familiar icons. BUT custom "macros" are a luck-dip of meaningless cartoons ..!

    I have one project with 8 controls applicable to a variety of sheets in the parent project. This is not an XLAM file

    The default icons from available list is useless without a caption for CUSTOM macros (Sub procedures)
    A green dot (or whatever) does not give the user any clues what the icon represents.

    XLSM projects are pointless as a ribbon-tab because the tab remains even after the XLSM file is closed.
    The ONLY way I can see to make the custom controls XLSM specific is on the QAT.

    Frustrating after 18 years as an Excel/AutoCad addins developer.

    Office 2010

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to show a caption on custom controls on Quick Access toolbar

    http://www.rondebruin.nl/win/s2/win013.htm

    The above link has some very useful examples for customising the ribbon which you can make specific to a workbook.

  5. #5
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: How to show a caption on custom controls on Quick Access toolbar

    @GreyGhost.
    You say the tab remains after the .xlsm file is closed. Is that custom xml or as a result of vba and commandbar creation? The default behaviour for ribbon xml within a .xlsx or .xlsm workbook is to only display when that workbook is active.

    You can alter this behaviour by using a different namespace in the xml.

    And the QAT is not designed to display captions. It displays icon and screentip.
    Cheers
    Andy
    www.andypope.info

  6. #6
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Thanks Andy Pope for your response

    I have been tearing my hair out for weeks trying to find out how Ribbon-Tabs/QAT relate to each other or not.
    Specifically the limitations of each and what file types use tabs or QAT
    I have been writing VBA for about 18 years + WordBasic before that, so I am used to custom toolbars in Excel and all their foibles. Workbook-Events to ensure toolbars are made available over the parent workbook, etc ...
    99% of my controls are CUSTOM actions ... not built-in commands

    At the moment if I can get a XLSM files to work ... I will be a happy camper.
    ie, One XLSM file with its dedicated controls available to numerous sheets within the project. (Not wsheet controls)
    I also have a lot of addins (my authorship) that I will wrestle with later. One XLA with 58 custom controls that has worked like a dream since 2004, now it is useless in Excel 2010
    I am an old Excel 2003 developer, addins, templates etc ... toolbars were straight forward although book-events got busy to ensure toolbars only appeared to parent projects.

    It looks like MS threw out the baby and the bath and the water with Excel-2010 (and I assume Excel-2007)

    I would appreciate ANY guidance to start understanding where and how custom controls for an XLSM are placed, to ensure dedicated controls to the XLSM project.

    And the QAT is not designed to display captions. It displays icon and screentip.
    At last I now know that QAT controls cannot have Captions. Thank you for the confirmation

    You can alter this behaviour by using a different namespace in the xml.
    This is where I glaze over. XML is a brand new experience for me. A lot to learn.

    Thank you
    Last edited by GreyGhost; 02-10-2014 at 06:55 AM.

  7. #7
    Forum Guru Andy Pope's Avatar
    Join Date
    05-10-2004
    Location
    Essex, UK
    MS-Off Ver
    O365
    Posts
    20,434

    Re: How to show a caption on custom controls on Quick Access toolbar

    AndyLitch's link is a good place to start. Explore Ron's pages on ribbon related stuff.

    The is a tool on my site to make this a little easier,
    http://www.andypope.info/vba/ribboneditor_2010.htm

    More detail and examples here.
    http://www.andypope.info/vba/ribboneditor.htm

    Bob Phillips has some information on making the process less painful using vba.
    http://msmvps.com/blogs/xldynamic/ar...ch-a-pain.aspx
    http://msmvps.com/blogs/xldynamic/ar...bbon-code.aspx

  8. #8
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Thank you AndyLitch for the link to Ron de Bruin

    There is very little info on the web for Excel 2003 developers getting a grip on the ribbon/tabs/QAT in Excel 2010 (2007)
    I thought I was going to get to retirement with Excel 2003 and then go fishing. But not so

    Thanks again

  9. #9
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Andy Pope .. life saver
    It is past my bedtime here (OZ)
    I will look into all your suggestions tomorrow after I have dealt with mundane things like clients.

    Thanks again

  10. #10
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to show a caption on custom controls on Quick Access toolbar

    LOL........... Good luck M8

  11. #11
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    For some of my more complex toolbars and custom menus (Excel2003) I used a wsheet table.
    I could then add controls without touching code, but it required a lot of coffee to get through the project.

    With XML is it possible to use a wsheet table for control types, caption, level etc... an XLT file for any XLS or XLA already setup made new projects a lot simpler.
    Took me about 2 years to refine the gliches.
    A loop through the table was so easy.

    In Excel 2010, are project specific tabs/controls created by the open-event?

  12. #12
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: How to show a caption on custom controls on Quick Access toolbar

    No.
    An XLMS file is actually a combination of files - one of which specifies the ribbon controls... You have to create that outside of VBA to set your ribbon

  13. #13
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to show a caption on custom controls on Quick Access toolbar

    It is possible to use dynamic menus with the ribbon where your VBA code will build the required XML string - this may be table-driven.
    • Please remember to mark threads Solved with Thread Tools link at top of page.
    • Please use code tags when posting code: [code]Place your code here[/code]
    • Please read Forum Rules

  14. #14
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Thank you AndyLitch
    An XLMS file is actually a combination of files - one of which specifies the ribbon controls... You have to create that outside of VBA to set your ribbon
    I guess XML ???
    VBA setting XML ??
    ------------

    Thank you Izandol
    My Excel 2003 menus (on menubar) are dynamic at all menu levels (where required)
    Excel 2003 addins ... With custom menus on menubar I limit sub menus to one level
    Please Login or Register  to view this content.
    ...VBA code will build the required XML string
    ... I assumed VBA and XML are totally separate entities, like oil and water
    I use the table for initial build by Workbook_Open() ... in fact uses a late bound class to build the menu/toolbars. Dynamic adjustments by parent menus

    Can you point me to samples of VBA rebuilding the XML code ?

    Thank you all for your help

  15. #15
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: How to show a caption on custom controls on Quick Access toolbar

    Hi,

    After trying to add text under the QAT icons, a search of the net found:
    http://www.contextures.com/excelribbonaddcustomtab.html

    In watching the example video it looks like their tool only works for 2007 and 2010 excel.

    My guess is you need to build a custom tab and put text under the Icons in it.

    I'm a little late to this party but will keep looking for a better answer. Many times the feature is simply not available is Excel.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  16. #16
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: How to show a caption on custom controls on Quick Access toolbar


  17. #17
    Registered User
    Join Date
    06-09-2011
    Location
    Newcastle, Australia
    MS-Off Ver
    2003, 2010
    Posts
    54

    Re: How to show a caption on custom controls on Quick Access toolbar

    Thanks MarvinP and Izandol for your support

    I must get some $$ in today, so I will lookinto all the suggestions so far

    Thank you all ... I will be back

    the-bald-one

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Show Quick Access Toolbar ONLY
    By peak@excel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 08-06-2013, 05:40 AM
  2. How to create custom icons for Quick Access Toolbar?
    By ReplicaR in forum Excel General
    Replies: 2
    Last Post: 12-11-2012, 04:12 PM
  3. Replies: 0
    Last Post: 11-10-2011, 05:26 PM
  4. Excel 2007 : Quick Access Toolbar
    By PosseJohn in forum Excel General
    Replies: 2
    Last Post: 10-27-2010, 02:19 AM
  5. Excel 2007 : adding custom button to quick access toolbar
    By surfengine in forum Excel General
    Replies: 6
    Last Post: 02-02-2010, 02:50 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1