Recovering File Info Specifically Save Date or Print Date

  • Thread starter Thread starter Gadgetgw
  • Start date Start date
G

Gadgetgw

Is ther a way in Excel to get to the file save date or print date. I am able
to do this in Word but can't fined the equivalent method for excel.

Graeme
 
Daniel,
I understand that but i want to get the info into a cell programatically not
just view from the file menu.
Graeme
 
Lokk at VBA help for :
ActiveWorkbook.BuiltinDocumentProperties
Daniel
 
Add these to a general module in your workbook then run the macro
documentprops to get a list of the builtin properties and their values.

Adjust to suit.

Function DocProps(prop As String)
Application.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function

Sub documentprops()
'list of properties on a new sheet
rw = 1
Worksheets.Add
For Each p In ActiveWorkbook.BuiltinDocumentProperties
Cells(rw, 1).Value = p.Name
Cells(rw, 4).Value = "=DocProps(" & "A" & rw & ")"
rw = rw + 1
Next
End Sub


Gord Dibben MS Excel MVP
 

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

Back
Top