+ Reply to Thread
Results 1 to 3 of 3

Updating Cells against Validation Parameters

  1. #1
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582

    Updating Cells against Validation Parameters

    Is there a macro or VBA code that will check current cell contents against the cell validation parameters? The cell can violate the validation parameters in two cases (that I can think of);
    1. If the validation parameter is applied when the cells are already populated

    2. If you're using the dependent list validation as discussed in "Lists Data Validation Post" (http://www.excelforum.com/showthread.php?t=594442)

    I'd like to run code that flags the fact that these cells exist.

    Thanks

    ChemistB

  2. #2
    Forum Contributor
    Join Date
    01-24-2007
    Location
    Southampton, UK
    Posts
    137
    The VBA below should achieve what you need. It checks all cells that have validation criteria & tests to see if the current data is valid or not, then reports the results as a message (and also selects invalid cells).

    Please Login or Register  to view this content.

  3. #3
    Forum Guru
    Join Date
    08-05-2004
    Location
    NJ
    MS-Off Ver
    365
    Posts
    13,582
    Wow, this is great. Thanks Loz!

    ChemistB

+ 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