I used this VB code and found useful.
Let me explain step by step. May be this is useful for others.
- open up your work sheet.
- Press Alt + F11. You will find a Visual Basic scree opening up.
- Go to 'Insert' menu and select 'Module'. you will find a screen opening up
- Copy the below code and paste in the window.
Function LastSaveDate()
Application.Volatile True
LastSaveDate = FileDateTime(ThisWorkbook.FullName)
End Function
- Save this file and close the VB window.
- in the cell where you want to insert the last saved date type
= LastSaveDate()
and save the exel file.
It works right without any problem.
Dinesh: I applaud you! Thank you... that was excellent step-by-step instructions, and exactly what I (and I suspect many people) needed!
The only thing I would add is a reminder to format the cell:
7. Right click on the cell where you typed '=LastSaveDate()'
8. Left click on "Format Cells..."
9. Select the "Number" tab
- Select the appropriate format for your needs. Because my document could be saved multiple times in one day, I opted to display the date and time.
I also added an indicator to the left of the '=LastSaveDate()' to identify what the date represents... now my document displays the following:
Last Saved: 6/7/16 12:13 PM