+ Reply to Thread
Results 1 to 3 of 3

Using an Excel Event to Validate Each Row of Data in Real Time

  1. #1
    Registered User
    Join Date
    06-12-2009
    Location
    London, England
    MS-Off Ver
    Excel 2003
    Posts
    3

    Question Using an Excel Event to Validate Each Row of Data in Real Time

    Hi all

    I use a template which users fill in data (there are lists used in most of the cells to ensure that only appropriate values are entered but these are overwritten if a user pastes data into the cells) on a variable number of rows.

    Depending on what they enter in certain cells in the same row will require different sets of validation.

    I'd like to be able to have the flexibility to apply this validation on the set of variables the user has entered but I'd like to do this without them having to click a button to run a separate macro.

    Is it possible to satisfy the requirement above using a worksheet event such as selectionchange, and if so, is it possible to use a variable to indicate which row it should apply the validation on

    e.g. if they entered data in row A, and click in Row C, I'd like there to be some kind of error message saying row A contains the error.

    As there will be an unknown number of rows, it would have to apply the validation each row.

    Thanks a lot for reading this, and if you can help me with any of it, i'd really appreciate it!

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Using an Excel Event to Validate Each Row of Data in Real Time

    If you are responding to manual entry, then the Worksheet_Change event will work. It provides a range argument (called Target) that represents the changed cell(s) so you know which row(s) you need to apply the validation to.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    07-07-2010
    Location
    Pretoria, South Africa
    MS-Off Ver
    Excel 2003
    Posts
    1

    Re: Using an Excel Event to Validate Each Row of Data in Real Time

    How to validate south african id number using excel?

+ 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