+ Reply to Thread
Results 1 to 1 of 1

Data Validation & Worksheet_change

  1. #1
    Mike Jerakis
    Guest

    Data Validation & Worksheet_change

    I am trying to use data validation to restrict users to a list of people's
    names, which is contained in range somewhere in the file. However, I'd like
    the user to enter a different name if they really want to. If they do, I've
    got to intercept it, validate it, and then add it into the list for future
    reference in the data validation. I've changed the Data Validation to not
    create an immediate error alert.

    My approach to this was within the Worksheet change event.
    Please Login or Register  to view this content.
    Where the first IF statement decides whether the change took place in the
    area I want to evaluate.

    However, the Target.Validation.Value is always returning true, regardless of
    what is entered when I make the change.

    Here's the wierd part, though, if I undo what I typed and the cell is still
    "invalid", the code triggers. If the undo value is valid, it doesn't, i.e.
    the code seems to work fine.

    Does using the Data Validation dropdown not trigger a worksheet change
    event? I can't find any references to that,

    Any ideas?
    Last edited by VBA Noob; 12-29-2007 at 12:03 PM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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