+ Reply to Thread
Results 1 to 4 of 4

Stop entry overwrite and clear cell data off of entry in another cell

  1. #1
    Forum Contributor
    Join Date
    06-06-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    129

    Stop entry overwrite and clear cell data off of entry in another cell

    I am trying to get a VBA code to automatically place the current time in cell F1 by any entry in cell A1, but can’t be over written once entered if the user enters something in the same A1 cell again. And the same to place the current time in cell G1 by any entry in cell L1, but can’t be over written once entered if the user enters something in the same L1 cell again. Then if a value is changed in L1 to one of two values "TA" or "FW", cell H1 will be blanked of any entry.

    Please Login or Register  to view this content.
    Attached Files Attached Files

  2. #2
    Forum Guru
    Join Date
    07-25-2011
    Location
    Florida
    MS-Off Ver
    Excel 2003
    Posts
    9,643

    Re: Stop entry overwrite and clear cell data off of entry in another cell

    Please Login or Register  to view this content.
    Surround your VBA code with CODE tags e.g.;
    [CODE]your VBA code here[/CODE]
    The # button in the forum editor will apply CODE tags around your selected text.

  3. #3
    Forum Expert
    Join Date
    07-20-2011
    Location
    Mysore, India.
    MS-Off Ver
    Excel 2019
    Posts
    8,582

    Re: Stop entry overwrite and clear cell data off of entry in another cell

    Try this code
    Please Login or Register  to view this content.
    Attached Files Attached Files

  4. #4
    Forum Contributor
    Join Date
    06-06-2017
    Location
    Phoenix, AZ
    MS-Off Ver
    2013
    Posts
    129

    Re: Stop entry overwrite and clear cell data off of entry in another cell

    I can get the time stamp to work for both column "F" and "G".

    I can't seem to get the check of column "H" and clearing the cell if the entry in column "L" is changed to the value of "TA" or "BT" to work.

    I am a newbie so I would appreciate if you put the comments in as to what each line is doing so I can understand what is going on.

+ 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. Stop data entry if adjacent cell is blank - VBA code
    By iecbso in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 10-29-2015, 08:44 AM
  2. Stop cell entry from changing case?
    By dubcap01 in forum Excel General
    Replies: 1
    Last Post: 07-02-2015, 07:36 AM
  3. formula to clear a cell once another cell has an entry
    By r2xman in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 07-17-2013, 08:00 PM
  4. Vba for move data & clear entry screen for entry new data..
    By santosh226001 in forum Excel Programming / VBA / Macros
    Replies: 8
    Last Post: 09-27-2012, 09:19 PM
  5. Macro to Clear Cell if entry made in different cell
    By rrtechno in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 05-23-2011, 04:10 PM
  6. Replies: 1
    Last Post: 02-22-2011, 05:16 AM
  7. How do I prevent data entry in one cell if an entry exist in another cell
    By rkjudy in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 03-13-2010, 09:38 PM

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