+ Reply to Thread
Results 1 to 2 of 2

Display last date workbook was modified?

Hybrid View

  1. #1
    manxman
    Guest

    Display last date workbook was modified?

    I would like to have a cell display the last date a workbook was modified.
    What would the code for that be?

    Thanks in advance for any help.


  2. #2
    Forum Expert mrice's Avatar
    Join Date
    06-22-2004
    Location
    Surrey, England
    MS-Off Ver
    Excel 2013
    Posts
    4,967

    Response

    You could use a Worksheet_change or Workbook_beforesave macro to populate a cell with the current date/time.

    e.g.

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Sheets(1).Cells(1, 1) = Date
    End Sub

    pasted into the thiswokbook tab in the VBA editor (Shift F11)

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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