+ Reply to Thread
Results 1 to 4 of 4

Populate Validation List and do loop until cell value is meet

  1. #1
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Populate Validation List and do loop until cell value is meet

    Hi Experts,

    Currently, I have a code to create a validation list that ignore empty cell from Column(B) of Worksheet(Data) at cell "L5" and has a formula at "M5" to lookup left value of "L5".

    This is what I want to achieve:
    Step 1. Create a validation list at "L5" and return lookup value at "M5"
    Step 2. repeat step 1 until the value at cell "A1"

    I am not good at this. I appreciate and help that improve this code.

    See attached sample excel file.
    Attached Files Attached Files

  2. #2
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Populate Validation List and do loop until cell value is meet

    can you clarify this?

    Step 2. repeat step 1 until the value at cell "A1"

    and by this.....

    Step 1. Create a validation list at "L5" and return lookup value at "M5"

    ....you mean that you want the value chosen in the dropdown from ''L5'' to appear in the cell ''M5''?

    don't worry, the people around here are very nice. we'll help. you don't have to be good. as long as you're willing to learn. you can learn for a lifetime with stuff!

  3. #3
    Registered User
    Join Date
    05-12-2015
    Location
    AU
    MS-Off Ver
    2010
    Posts
    58

    Re: Populate Validation List and do loop until cell value is meet

    Hi vba_php,

    Sorry for the confusing explanation. I try again I hope it will be clear this time.

    step1 : I have a selection change event of worksheet to create validation list in cell "L5", the value selected will appear in cell "L5". I also have a lookup formula on "M5", if it is possible to replace the formula as part of the vba code.
    step2 : create the same validation list in cell "L6" up to "Lx", where x is the value in Worksheets("Main").cells("A1")

    Selection Change event code:
    Please Login or Register  to view this content.

  4. #4
    Banned User!
    Join Date
    02-06-2020
    Location
    Iowa City, IA, USA
    MS-Off Ver
    2016 - 365 / 2007
    Posts
    2,014

    Re: Populate Validation List and do loop until cell value is meet

    you said: I also have a lookup formula on "M5", if it is possible to replace the formula as part of the vba code.

    almost anything you can do through the interface, you can also do with code. the reason for this is simple. Excel was written with code.

    you also said: create the same validation list in cell "L6" up to "Lx", where x is the value in Worksheets("Main").cells("A1")

    so, if you want to create the EXACT same dropdown menu that is in cell ''L5'' for every cell beneath it, for a cell count listed in ''A1'' on the main tab, then more than likely all you have to do is tell Excel to teach you. see what I did here:

    https://drive.google.com/file/d/1KGl...ew?usp=sharing

    and the code that Excel wrote for me, after I modified was this:
    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. Replies: 2
    Last Post: 04-17-2019, 09:06 AM
  2. populate a list on one work sheet from multiple work sheets that meet a criteria
    By Kelly Linton-Selkirk in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 01-21-2015, 03:56 PM
  3. Populate cell data based on data validation (drop down list)
    By ish_baho in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 02-05-2014, 11:47 PM
  4. Replies: 1
    Last Post: 11-05-2013, 12:40 AM
  5. Populate Validation list with Collection
    By CaroKannDefence in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-25-2011, 05:07 PM
  6. loop to populate a list
    By mcinnes01 in forum Excel Programming / VBA / Macros
    Replies: 9
    Last Post: 04-13-2011, 12:36 PM
  7. populate a validation List?
    By HotRod in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 02-09-2005, 12:06 PM

Tags for this Thread

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