Date last saved/updated

G

Guest

I want to get the date the file I'm working on was last saved and place that
value into a cell.

I don't see a built in function to do this, any help is appreciated.

Hal
 
R

Ron de Bruin

Hi Hal

Sub test()
Sheets("Sheet1").Range("A1").Value = _
Format(ThisWorkbook.BuiltinDocumentProperties("Last Save Time"), _
"yyyy-mmm-dd hh:mm:ss")
End Sub
 
W

William

Hi Hal

Range("A1").NumberFormat = "dd/mm/yy hh:mm"
Range("A1") = FileDateTime(ThisWorkbook.FullName)
--

Regards

William

XL2003

(e-mail address removed)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top