Error Checking in Excel
Thanks Thanks:  0
Likes Likes:  0
Results 1 to 2 of 2

Thread: =LastSaved Formula

  1. #1
    Guest

    Default

    Is there a formula that will return in a cell the time and date of the last time the file was saved?

  2. #2
    MrExcel MVP Tom Urtis's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, California USA
    Posts
    11,162
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Default

    I am not aware of a formula that can do that, but you can achieve this effect by using VBA.

    Locate the Excel workbook icon just to the left of the File menu option, near the upper left corner of your screen. Right click on that icon, then left click on View Code, and paste this in:

    ''''''''''''''''''''''''''''''''''''''''

    Private Sub Workbook_BeforeSave(ByVal SaveAsUI As Boolean, Cancel As Boolean)
    Sheet1.[A1] = "File was last saved " & Now
    End Sub

    '''''''''''''''''''''''''''''''''''''''''

    This will place the information you want in cell A1 of Sheet1; modify for sheet and desired cell.

    HTH

Some videos you may like

User Tag List

Like this thread? Share it with others

Like this thread? Share it with others

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •