+ Reply to Thread
Results 1 to 2 of 2

Thread: Time Stamps on Edited Sheets?

  1. #1
    Registered User
    Join Date
    01-24-2011
    Location
    In a House on earth
    MS-Off Ver
    Excel 2007
    Posts
    18

    Question Time Stamps on Edited Sheets?

    Hey how can I get a timestamp on one of my excel sheets each time data entered on it is altered/added/removed ?

    And i dont meat the:
    =TODAY()
    function.

    I only want the date and time that the sheet was last edited (when i add, or when i change or when i delete a cell/row/column)
    Last edited by anonymust; 01-24-2011 at 10:57 PM.
    * * * * * * *
    How beautiful it is to excel, and the goodness of giving from your heart. || Always strive to excel, but only on weekends. - Richard Rorty & Robert Mondavi

  2. #2
    Valued Forum Contributor MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Seattle, WA
    MS-Off Ver
    Excel 2010
    Posts
    5,274

    Re: Time Stamps on Edited Sheets?

    Hi anonymust ,

    The answer is you need an event macro behind the sheet you want timestamped when something changes.
    For example if I want to keep an time stamp in A20 for everytime a value changes on my sheet I'd do

    Option Explicit
    
    Private Sub Worksheet_Change(ByVal Target As Range)
        If Target.Address <> "$A$20" Then
            Range("A20") = Now()
        End If
    End Sub
    This code must go behind the worksheet so it is an event macro. Read up at:
    http://www.cpearson.com/excel/Events.aspx

    You can also search on "VBA Macro Timestamp" to find other examples.
    One test is worth a thousand opinions.
    Click the * below to say thanks.

+ 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.2.0