+ Reply to Thread
Results 1 to 9 of 9

Trigger data validation from worksheet change event

  1. #1
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Trigger data validation from worksheet change event

    Just like the title says. I've read numerous posts on how to trigger a worksheet change event upon data validation, but am having a bit of difficulty trying to find something going the other way...in relation to creating a data validation cell when a value is placed within an adjacent cell within a table.

    e.g. user places value in cell A (to lastrow) which triggers cell B (to lastrow) to a data validation dropdown. I've set A to be a dynamic named range.


    Data validation example:
    Please Login or Register  to view this content.
    Much appreciated

  2. #2
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trigger data validation from worksheet change event

    so i have a few questions for you.

    i have a sample workbook that is configured to add a validation dropdown to column B if Column A value is greater than 0.

    but that is all it does, so you type a 1 in a cell in column A and in the same row but column B it displays a dropdown list.

    is that what you wanted? is yes, then i will upload the workbook.

  3. #3
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Re: Trigger data validation from worksheet change event

    Thank. I'm sure that would work. If you want to just send me the code, that would be ok too. The value (A) is string, but since the validation only occurs when a value is entered into A, I could equate another range with an IFTHEN >0 statement when A is not null and configure the validation to that working range.

  4. #4
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trigger data validation from worksheet change event

    ok, put this in the sheet that you want to monitor:

    Please Login or Register  to view this content.
    and put this in module 1:

    Please Login or Register  to view this content.
    also make sheet2 and put in A1 to A5 "1", "2", "3", "4", "5". That is what the validation list references.

    ill upload the workbook too just in case you need it.
    Attached Files Attached Files

  5. #5
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Re: Trigger data validation from worksheet change event

    Thanks dmcgov. Very helpful.

  6. #6
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trigger data validation from worksheet change event

    if this fixes your issue please mark the topic as solved (Thread Tools->Mark as Solved) and then click on "Add Reputation", that is always helpful for me.

  7. #7
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Re: Trigger data validation from worksheet change event

    I thought I had clicked, but let me know if it didn't go through (if you can). By simply removing the cases, it works when a any value (numerical, string) is entered. The validation remains if the cell is null or entire row is deleted however.

  8. #8
    Valued Forum Contributor dmcgov's Avatar
    Join Date
    11-11-2015
    Location
    Florida, USA
    MS-Off Ver
    Office 365 Business
    Posts
    1,518

    Re: Trigger data validation from worksheet change event

    I checked and no apparently the click on Add Reputation did not go through, not the end of the world.

    post what you have and i will tweak it to clear out that cell.

  9. #9
    Forum Contributor
    Join Date
    02-25-2013
    Location
    Colorado, US
    MS-Off Ver
    Microsoft 365 Apps
    Posts
    518

    Re: Trigger data validation from worksheet change event

    Yeah, boards been timing out and wanting me to keep logging back in every minute so not sure what the issue maybe. I'll give it a go again. Least I could do for your help.
    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] Dont trigger code if i delete some value from range Worksheet change event
    By HaroonSid in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 07-05-2017, 07:48 AM
  2. [SOLVED] Worksheet Change Event Wrongly Trigger
    By Faridwahidi in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-03-2014, 11:00 PM
  3. [SOLVED] Worksheet change event with data validation
    By Dacodac in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-08-2013, 05:36 AM
  4. Worksheet change event for data validation??
    By Meltad in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 08-01-2006, 11:00 AM
  5. [SOLVED] Cell value change to trigger macro (worksheet change event?)
    By Neil Goldwasser in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-10-2006, 10:00 AM
  6. Worksheet Change Event-change event to trigger
    By Steph in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-18-2005, 06:05 PM
  7. [SOLVED] Data Validation Listbox and the Worksheet Change Event
    By RASENT in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 06-17-2005, 05:05 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