+ Reply to Thread
Results 1 to 5 of 5

Populating Custom Ribbon DropDown from a dynamic NamedRange

Hybrid View

  1. #1
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Populating Custom Ribbon DropDown from a dynamic NamedRange

    Hi,


    I have the attached XML code for a simple custom ribbon



    What I want is to load a dynamic named range instead of Red font items in the Xml code(hard coded)

    myDynamicRng=Range("A5:A" & Range("A" & Rows.Count).End(xlUp).Row)
    I also want my Dataset ("A5:G & LastRow) to be filtered on the basis of selection in this dropdown

    Further dropdown list should be updated on the fly if I add/Delete items in the data set


    Help would be greatly appreciated

    Best Regards
    Imran Bhatti
    Attached Files Attached Files
    Teach me Excel VBA

  2. #2
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Populating Custom Ribbon DropDown from a dynamic NamedRange

    Any one please?

  3. #3
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Populating Custom Ribbon DropDown from a dynamic NamedRange

    You've already got a similar thing set up with your combobox, so what problem are you actually facing with replicating that for your dropdown?
    Everyone who confuses correlation and causation ends up dead.

  4. #4
    Valued Forum Contributor ImranBhatti's Avatar
    Join Date
    03-27-2014
    Location
    Rawalpindi,Pakistan
    MS-Off Ver
    Office 365
    Posts
    1,785

    Re: Populating Custom Ribbon DropDown from a dynamic NamedRange

    Thanks rory .Acually I got the combobox code from the internet for worksheet navigation.
    But for the other one I want to get the list in the "Batch Folders" sheet Range("A5:A" & LastRow)
    and I am unable to configure that. while having the workbook opened this list may increase in length or decrease.
    I am weak in Ribbon UI Manipulation. The existing Ribbon stuff in the workbook was my first attempt to reshap the UI of a workbook.

  5. #5
    Forum Expert romperstomper's Avatar
    Join Date
    08-13-2008
    Location
    England
    MS-Off Ver
    365, varying versions/builds
    Posts
    22,064

    Re: Populating Custom Ribbon DropDown from a dynamic NamedRange

    Quote Originally Posted by ImranBhatti View Post
    I am weak in Ribbon UI Manipulation.
    And the best way to change that is to look at the combobox code and tweak it for your dropdown. It's basically the same principle except you read a cell value using the index instead of a worksheet name.

+ 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. Dropdown box in a custom ribbon on click of button
    By benwilson6215 in forum Excel General
    Replies: 0
    Last Post: 07-07-2017, 10:21 AM
  2. [SOLVED] How to make a Dropdown menu in Custom Ribbon
    By eddijensen in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-26-2016, 07:53 PM
  3. Put VBA ribbon together with Custom UI Editor Ribbon
    By czarlando in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 01-23-2016, 05:46 AM
  4. [SOLVED] An alternative to the Add-Ins ribbon tab - Global Custom Ribbon Tab by Ken Puls
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 09-16-2014, 10:01 PM
  5. [SOLVED] Dynamic menu arrays (custom ribbon tab) only partly rebuilt after loss of state recovery
    By mc84excel in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-11-2013, 09:57 PM
  6. Populate dropDown in a custom ribbon on clicking a button
    By johnjacobt in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-01-2011, 05:02 AM
  7. listbox populating with namedrange having subranges under named range
    By kmsoni in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 09-24-2011, 02:45 AM

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