+ Reply to Thread
Results 1 to 2 of 2

Order of items based on a range being added to a combobox on a userform

  1. #1
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Order of items based on a range being added to a combobox on a userform

    Hello,

    I have a combobox on a userform where I load a bunch of values based on a range, it is strange to me that the first value appears in the combobox is actually the last value in the range.

    for example,

    I have in column F (F2:F5)
    Marketing
    Salaries
    R&D
    Other Expense

    and I have in column G: (G2)
    General Admin expense

    on initialization/show, the order of the combobox is as "General Admin expense","Marketing","Salaries","R&D",
    "Other Expense". I'd like to have the same order as in the range: Marketing","Salaries","R&D",
    "Other Expense", "General Admin expense". Can someone please help?


    Please Login or Register  to view this content.
    thanks!

  2. #2
    Forum Contributor
    Join Date
    06-19-2014
    Location
    Toronto, Canada
    MS-Off Ver
    Office365
    Posts
    273

    Re: Order of items based on a range being added to a combobox on a userform

    never mind, I went around it by setting another range combining all items in multiple columns in the order I want, then use that range to load the combobox, it's such a simple solution I didn't think of...

+ 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 VBA Screenshot Cell range to Userform picture based on combobox selection
    By andytesting in forum Excel Programming / VBA / Macros
    Replies: 11
    Last Post: 07-27-2017, 04:02 AM
  2. [SOLVED] Unique items in combobox on userform
    By YasserKhalil in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 08-16-2015, 09:31 AM
  3. VB UserForm ComboBox List Based On Dynamic Named Range in Worksheet
    By huntethic in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 04-14-2015, 02:45 PM
  4. [SOLVED] Userform - ListBox items added based on Combobox value selected
    By jayherring86 in forum Excel Programming / VBA / Macros
    Replies: 14
    Last Post: 11-12-2014, 09:12 AM
  5. Userform Combobox to populate form: Can I change the order of the columns in the combobox?
    By CraigWiggins in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 10-31-2014, 12:14 PM
  6. Populating Userform ComboBox Using Items from Content Control Combobox
    By anarxo in forum Word Programming / VBA / Macros
    Replies: 2
    Last Post: 01-17-2014, 01:00 PM
  7. Replies: 1
    Last Post: 06-24-2005, 12:21 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