+ Reply to Thread
Results 1 to 3 of 3

Data validation - How to get Invalid cells - VBA

  1. #1
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Data validation - How to get Invalid cells - VBA

    I would like to be able to iterate / process all invalid cells in worksheet.

    By invalid I mean Cell(x,y).Validation.Value <> true


    I know I can iterate through every cell in every row to find them, but this is toooo slow.


    Does any of you clever guys know of a way of referencing just the invalid cells ?


    Thanks

  2. #2
    Forum Expert OllieB's Avatar
    Join Date
    12-20-2012
    Location
    Netherlands
    MS-Off Ver
    Excel 2007 (home) & 2010 (office)
    Posts
    1,542

    Re: Data validation - How to get Invalid cells - VBA

    rcihard,

    I do not think you. You can use Find Special to only find those cells that have a validation rule, but you would still have to query each cell in the range returned by the find instruction to determine which cells are in error.
    If you like my contribution click the star icon!

  3. #3
    Registered User
    Join Date
    06-06-2012
    Location
    Leeds, United Kingdom
    MS-Off Ver
    Excel 2003, 2007, 2010, 2013
    Posts
    40

    Re: Data validation - How to get Invalid cells - VBA

    Ollie,

    thanks for the special cells tip
    Please Login or Register  to view this content.
    just processing cells with validation has helped allot.

    Cheers

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

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