+ Reply to Thread
Results 1 to 6 of 6

Excel 2010 Controls Question

  1. #1
    Forum Contributor
    Join Date
    09-21-2014
    Location
    Midwest USA
    MS-Off Ver
    2010
    Posts
    349

    Excel 2010 Controls Question

    Does anyone know when you add a tab to the Ribbon using the onboard Excel Ribbon Customization functionality what Control Name is assigned to the new Tab?
    I’m working on customizing my Ribbon in Excel 2010 using Ron de Bruin’s website and I’ve found how you can add a custom group to either an Existing Excel Tab or to a custom group also created with XML.
    I’ve downloaded the ExcelControls.xlsx help file and see that the existing tabs have the following Control Names:
    TabHome
    TabInsert
    TabPageLayoutExcel
    TabFormulas
    TabData
    TabReview
    TabView
    TabDeveloper

    The Tab I created using the Customize Ribbon functionality (Not XML) is called “Trades” I’ve tried:
    Trades
    TabTrades
    TabTradesExcel

    None of them work (i.e. the custom RDB group example which I can display on TabHome, etc. does not display on Trades.) I suspect the Control name is off. I tried turning on the macro recorder and changing tabs, but that action isn’t captured by the recorder. Searching for changing the Tabs in VBA only turns up SendKeys code. Anyone have any idea how I can find what Control Name Excel is using with my Custom Tab? Thanks for reading & any help.

  2. #2
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Excel 2010 Controls Question

    .
    Try:

    Please Login or Register  to view this content.

  3. #3
    Forum Contributor
    Join Date
    09-21-2014
    Location
    Midwest USA
    MS-Off Ver
    2010
    Posts
    349

    Re: Excel 2010 Controls Question

    Thanks for your reply.
    This is the existing line of XML codes which validates (but does not work)
    <tab idMso="Trades" >

    When I modified it to include the &
    <tab idMso="&Trades" >

    I get the following error: “Not a valid XML document! “” is an unexpected token. The expected token is’;’. Line 11, position 26.

    So I added the semicolon:
    <tab idMso="&Trades;" >

    Now the error is “Not a valid XML document! Reference to undeclared entity ‘Trades’. Line 11, position 20.

    This last one sounds like I’m getting close – maybe missing a declaration statement of some type – any ideas?

  4. #4
    Forum Contributor
    Join Date
    09-21-2014
    Location
    Midwest USA
    MS-Off Ver
    2010
    Posts
    349

    Re: Excel 2010 Controls Question

    fyi - the excelforum stripped out the leading spaces on the code lines. Position 20 in the last error is the "T" in Trades

  5. #5
    Forum Expert Logit's Avatar
    Join Date
    12-23-2012
    Location
    North Carolina
    MS-Off Ver
    Excel 2019 Professional Plus - 2007 Enterprise
    Posts
    7,014

    Re: Excel 2010 Controls Question

    My suggestion was based on syntax for most menu 'commands' in VBA / VB.
    I wish I could be of more assistance but my knowledge level in this area (your project) is very limited.
    Hopefully a Forum Guru will be of assistance.

    Best wishes.

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Excel 2010 Controls Question

    Hi,

    idMso is only for the built in controls. You use id for custom controls/tabs- or idQ if you need to share them between workbooks. I am not certain whether that will work with a tab manually created in the UI as I do not know in which order the customisations are loaded. Typically the tab would also be created in the CustomUI part if it is a custom tab.
    Don
    Please remember to mark your thread 'Solved' when appropriate.

+ 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. Excel ActiveX controls not compatable between 2010 and 2013
    By jsunnb in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-04-2015, 10:45 AM
  2. [SOLVED] Locking Form Controls (Options Button) Excel 2010
    By kmcbriarty in forum Excel General
    Replies: 5
    Last Post: 09-26-2014, 10:58 AM
  3. Excel 2010 - Tab or Arrow through ActiveX controls
    By sunnyd204 in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-16-2014, 02:56 PM
  4. Excel 2010; Form Controls: Assign keyboard shortcut to list box
    By DavidRoger in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 03-13-2013, 10:59 PM
  5. Add Date Picker to additional controls Excel 2010
    By rvc81 in forum Excel General
    Replies: 5
    Last Post: 09-29-2012, 01:13 AM
  6. excel 2010 activex controls disappear in hidden rows
    By mardyl in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 01-28-2012, 09:38 AM
  7. Positioning problem of ActiveX Controls in Excel 2010
    By chanine in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-04-2011, 12:52 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