+ Reply to Thread
Results 1 to 3 of 3

Permanent Timestamp for first entry then remain that timestamp even with edits. A Log file

  1. #1
    Registered User
    Join Date
    11-09-2016
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    2

    Permanent Timestamp for first entry then remain that timestamp even with edits. A Log file

    New to the Forum and new to VBA

    I've created a log book for daily activity and have it set up to put a timestamp (Date column C and Time column D) when ever an event is entered into Column B. It works great, but I'd like it to remain the same date and time even if someone does something like a spell check or make a few changes in the Event Column.

    Is this possible?

    This is the code I have:

    Private Sub Worksheet_Change(ByVal Target As Range)

    If Target.Column = 2 Then
    Application.EnableEvents = False
    Cells(Target.Row, 3).Value = Date
    Application.EnableEvents = True
    End If

    If Target.Column = 2 Then
    Application.EnableEvents = False
    Cells(Target.Row, 4).Value = Time
    Application.EnableEvents = True
    End If

    End Sub

    Thanks

    Dave

  2. #2
    Forum Contributor JP Romano's Avatar
    Join Date
    10-09-2008
    Location
    Princeton, NJ
    MS-Off Ver
    2010
    Posts
    500

    Re: Permanent Timestamp for first entry then remain that timestamp even with edits. A Log

    Maybe I'm oversimplifying, but if the date and time stamps are mean to be static, then wouldn't you be able to add a condition in your sheet that says something like below, so you only add the stamp to a cell that doesn't already have one?
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    11-09-2016
    Location
    Colorado
    MS-Off Ver
    2013
    Posts
    2

    Re: Permanent Timestamp for first entry then remain that timestamp even with edits. A Log

    That works! Very simple but that's all I need.

    Thanks!

+ 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. [SOLVED] Cell entry triggers timestamp THAT DOES NOT CHANGE
    By jparve3283 in forum Excel Formulas & Functions
    Replies: 1
    Last Post: 08-12-2016, 10:45 AM
  2. Remove Timestamp From Date/Time Entry
    By Irene62 in forum Excel Formulas & Functions
    Replies: 6
    Last Post: 10-22-2015, 05:25 PM
  3. User Form Data Entry Adding a TimeStamp
    By caltman242 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 03-14-2015, 09:15 AM
  4. timestamp after entry of data
    By scabertrain in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 12-05-2014, 02:26 PM
  5. VBA that enters TIMESTAMP after data entry, then locks it
    By MichState in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 12-10-2013, 01:39 PM
  6. VBA timestamp that locks unlocked cells in range upon entry
    By twhite in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 09-13-2012, 12:42 AM
  7. When a timestamp doesn't behave as a timestamp
    By mredekopp in forum Excel General
    Replies: 3
    Last Post: 03-07-2011, 03:39 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