+ Reply to Thread
Results 1 to 4 of 4

Add-In Menu Creation

  1. #1
    Registered User
    Join Date
    04-30-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Add-In Menu Creation

    Hi,

    I have created a new Add-In menu using XML <CustomUI>. The menu is created successfully along with buttons, controls, etc. I wanted a comboBox to display all styles within in. For this, I have written the code: <comboBox idMso="StyleGalleryClassic"/>. However, this comboBox is not shown. If I change the code to <gallery idMso="StyleGalleryClassic"/>, then the Style List is shown. But I want the list to be shown in comboBox. Can someone help me? I am using Excel 2007. I am also posting the code below:
    Please Login or Register  to view this content.
    Thanks in advance,

    Srinivas
    Last edited by royUK; 05-14-2011 at 05:30 AM.

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

    Re: Add-In Menu Creation

    How exactly is the combobox suppose to display the information that is possible in a gallery? The combobox will only be a list of text.
    Cheers
    Andy
    www.andypope.info

  3. #3
    Registered User
    Join Date
    04-30-2011
    Location
    Hyderabad, India
    MS-Off Ver
    Excel 2007
    Posts
    9

    Re: Add-In Menu Creation

    Hi,

    Thanks for your message. I am not sure whether comboBox can be used along with StyleGalleryClassic. I have referred this in the below link:

    http://social.msdn.microsoft.com/For...-88b2346f8cf6/

    We have an Add-in Menu created by previous programmer wherein there is a dropdown/comboBox which has style of Activecell. Upon clicking, it will show all styles available in the Workbook. I want similar feature in my Add-in Menu. I wish to create a dropdown/comboBox which can show style of ActiveCell and also upon clicking can show list of all styles.

    I have another questions. Using the same Add-in Menu, by using a label or editBox, can I display the ActiveCell's columnwidth.

    Your help is greatly appreciated. I need to submit my project by 17th May.

    Regards,

    Srinivas

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

    Re: Add-In Menu Creation

    Please keep all posts in this thread unless invited to directly contact a member.

    The dropdown appears in the Add-in tab in xl2007 because it is constructed using the old commandbars methods.
    You want to use the new ribbonx method and I don't think you can reference the old commandbar directly in ribbonx. You can do it in vba.

    So you would need to have a dropdown control that you populate and maintain via code.

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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