Show file properties when opening a workbook

H

Harry Archer

Looking for a way to display a message box that displays file properties
(date created, modified, last accessed etc.) when opened.

Any ideas would be greatly appreciated.

Many thanks,

Harry.
 
B

Bob Phillips

Harry,

Put this code in the ThisWorkbook code module. There is no last access
propertyt to show I am afraid.

Private Sub Workbook_Open()

With ActiveWorkbook.BuiltinDocumentProperties
MsgBox "Author: " & .Item("Author") & vbCrLf & _
"Date created: " & .Item("Creation Date") & vbCrLf & _
"Date modified: " & .Item("Last Save Time")
End With

End Sub


--

HTH

Bob Phillips
... looking out across Poole Harbour to the Purbecks
(remove nothere from the email address if mailing direct)
 

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