+ Reply to Thread
Results 1 to 3 of 3

VBA Sort Data based on ComboBox value selected

  1. #1
    Registered User
    Join Date
    06-03-2019
    Location
    New York
    MS-Off Ver
    Excel 2007
    Posts
    1

    VBA Sort Data based on ComboBox value selected

    Hi Everyone,

    First time posting to a forum but I'm hoping someone can help. I have a sheet with a Form button that opens up my user form. I want ComboBoxes in that user form that allow the user to sort the data based on the value that they choose from the drop down.

    I am new to VBA but have figured out my way through a few macros in this sheet, just can't seem to get this one right. I populated the drop down list by entering a range in the ComboBox properties under RowSource. How do I link the rowsource values to execute this command? This is what I've used and it is not working:

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

    Any insight is helpful! Thank you.
    Last edited by alansidman; 06-03-2019 at 04:53 PM.

  2. #2
    Forum Moderator alansidman's Avatar
    Join Date
    02-02-2010
    Location
    Steamboat Springs, CO
    MS-Off Ver
    MS Office 365 Version 2405 Win 11 Home 64 Bit
    Posts
    23,888

    Re: VBA Sort Data based on ComboBox value selected

    Code Tags Added
    Your post does not comply with Rule 2 of our Forum RULES. Use code tags around code.

    Posting code between [CODE]Please [url=https://www.excelforum.com/login.php]Login or Register [/url] to view this content.[/CODE] tags makes your code much easier to read and copy for testing, it also maintains VBA formatting.

    Highlight your code and click the # icon at the top of your post window. More information about these and other tags can be found at http://www.excelforum.com/forum-rule...rum-rules.html



    (I have added them for you today. Please take a few minutes to read all Forum Rules and comply in the future.)
    Alan עַם יִשְׂרָאֵל חַי


    Change an Ugly Report with Power Query
    Database Normalization
    Complete Guide to Power Query
    Man's Mind Stretched to New Dimensions Never Returns to Its Original Form

  3. #3
    Forum Expert dangelor's Avatar
    Join Date
    09-06-2011
    Location
    Indiana, USA
    MS-Off Ver
    365 Pro Plus
    Posts
    2,274

    Re: VBA Sort Data based on ComboBox value selected

    Possibly...
    Please Login or Register  to view this content.

+ 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. [SOLVED] Sort columns in range based on selected row
    By Brontosaurus in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-09-2019, 10:52 AM
  2. [SOLVED] Combobox - jump to sheet based on selected listindex
    By Lukael in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 08-28-2015, 03:05 AM
  3. [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
  4. [SOLVED] Extract Data from Data Base Based on Selected ComboBox Value
    By DespoExcel in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 10-31-2014, 03:58 PM
  5. Unhide sheet based on the combobox value selected
    By irfanparbatani in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-29-2014, 06:25 PM
  6. Selected row based on combobox selection
    By SlappyDikkinz in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-31-2014, 11:26 AM
  7. Update Rows in Database based on Combobox selected item on Userform. Problem .
    By jmarriott in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-09-2013, 01:08 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