last Modified date in Excel spreadsheet

Hello

Can anyone help me read details about a current workbook.

Bascally everytime an excel spreadsheet is opened I want to saved the last modified date to say Sheet1.range("A1")

Thank you in advance.

[236 byte] By [dangster_gangster] at [2007-12-24]
# 1

Hey man,

The Workbook has a property named 'BuiltinDocumentProperties' that you can use to get pieces of information about the document. One of these is the Last Save Time

Cells(1, 1) = ActiveWorkbook.BuiltinDocumentProperties(12)

12 is the last saved time property. This will return an error is the workbook hasn't been saved.

DerekSmyth at 2007-8-31 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...
# 2

can this be done with a UDF instead?

i've this so far:

Function FileSavedTime(w As Workbook) As Date


FileSavedTime = w.BuiltinDocumentProperties("Last Save Time")

End Function

rexwrx at 2007-8-31 > top of Msdn Tech,Microsoft ISV Community Center Forums,Visual Basic for Applications (VBA)...