+ Reply to Thread
Results 1 to 7 of 7

populate sheet based on criteria selected in userform combobox.

  1. #1
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    populate sheet based on criteria selected in userform combobox.

    Good Day

    I have a userform with 2 x comboboxes and one textbox.

    combobox1 is populated from Sheets("Lookup") Range("B2:B300")
    combobox2 is populated from Sheets("DATA") Range("B3:B7")

    There are multiple iterations of the values in Sheets("Lookup") Range("B2:B300") in column C of Sheets("DATA")

    What i need is the following, the user selects a value in combobox1 and combobox2 and manually enters a value into textbox1 and then presses commandbutton1.

    The code then needs to search for the row in DATA sheet where combobox1 and combobox2 values are in column B & C next to each other and then enter textbox1 value into column D of the same row.

    Not sure if it makes any difference, but DATA sheet column B is dates formatted as yyyy/mm/dd. I would also like for this to show in the combobox2 as the same format, but is does not....currently i am using the below to add the dates to the combobox.
    Please Login or Register  to view this content.
    As always, any help will be greatly appreciated.

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: populate sheet based on criteria selected in userform combobox.

    This will populate and format the dates in Combobox2

    Please Login or Register  to view this content.
    Attach a workbook with examples for the search.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: populate sheet based on criteria selected in userform combobox.

    Thank you very much Alpha.

    See attached as requested.
    Attached Files Attached Files
    Last edited by ANDREAAS; 09-01-2019 at 02:49 PM. Reason: attachment

  4. #4
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: populate sheet based on criteria selected in userform combobox.

    sorry...file did not upload, will try again
    Attached Files Attached Files
    Last edited by ANDREAAS; 09-01-2019 at 02:49 PM. Reason: attachment

  5. #5
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: populate sheet based on criteria selected in userform combobox.

    The file is 30M, so it will not upload.

    Will these screenshots help?

    Userform1.PNG

    DATA Sheet.PNG
    Attached Files Attached Files
    Last edited by ANDREAAS; 09-01-2019 at 02:50 PM. Reason: attachment

  6. #6
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: populate sheet based on criteria selected in userform combobox.

    Please Login or Register  to view this content.

  7. #7
    Forum Contributor ANDREAAS's Avatar
    Join Date
    05-06-2013
    Location
    Port Elizabeth, South Africa
    MS-Off Ver
    Excel 2007 / 2010
    Posts
    368

    Re: populate sheet based on criteria selected in userform combobox.

    Thank you very much Alpha. You Rock!!!!

+ 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. Populate textbox based on combobox selection on Userform
    By Abdur_rahman in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-06-2019, 02:07 AM
  2. [SOLVED] How to populate Combobox based on criteria
    By Lsxtrkiller in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 08-07-2017, 08:27 PM
  3. Populate userform from row values based on combobox
    By robertogavilan in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 07-20-2014, 06:32 PM
  4. Userform Combobox to populate based on selection in another combobox
    By Excelnoub in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-14-2014, 03:34 PM
  5. [SOLVED] Excel Userform: Populate other controls (i.e. textbox & combobox) based on combobox select
    By MileHigh_PhD in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 01-22-2013, 04:50 PM
  6. Populate a combobox based on criteria
    By insanity66 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 04-13-2010, 04:12 PM
  7. populate userform combobox with sheet names
    By tapapad in forum Excel General
    Replies: 3
    Last Post: 11-14-2008, 03:10 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