+ Reply to Thread
Results 1 to 2 of 2

Verify cell content BEFORE the cell is left or before some other cell is selected

  1. #1
    Registered User
    Join Date
    11-21-2013
    Location
    Alaska
    MS-Off Ver
    10.0
    Posts
    1

    Verify cell content BEFORE the cell is left or before some other cell is selected

    I need to be able to perform an error check of the value that has been inserted into a cell.
    But the Worksheet_Change method does not help me because if it detects that the value is invalid, then I need to update the cell value to some standard value.
    But this I cannot do because I already have left the cell by mouseclick or tab or so... therefore in the case of detecting invalid user input, the standard value gets written into the wrong cell (the one that is selected after the "trouble" cell has been left).

    Can anybody help me on this?

    Thanks.
    Last edited by Tobias71; 11-22-2013 at 10:12 AM. Reason: Found the solution -> I have to use the TARGET value

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: Verify cell content BEFORE the cell is left or before some other cell is selected

    Thanks for providing the solution.
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

+ 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. Replies: 2
    Last Post: 09-03-2012, 02:56 PM
  2. [SOLVED] Trying to Find selected cell content within another worksheet cell range.
    By Craigside in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 08-13-2012, 04:36 PM
  3. Need macro to verify that the selected cell is in column B before running, how?
    By MrRenda in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 03-08-2012, 03:54 PM
  4. [SOLVED] Move contents of selected cell down one, and to the left one cell?
    By Albert Einstein in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 06-17-2006, 01:20 PM
  5. selected cell - top left
    By Ciara in forum Excel General
    Replies: 1
    Last Post: 05-25-2005, 07:19 AM

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