Open up the VBA editor (Alt + F11)
Right Click on "ThisWorkbook" in the "Projects" window.
Select Insert/Module
In the module that appears on the right, copy and paste Bob's code:
Function DocProperty(property As String)
DocProperty = ActiveWorkbook.BuiltinDocumentProperties(property)
End Function
Now go back to the workbook and type the following in any cell:
I'm kind of new to VBA but, I put this code in the sheet VBA code. It's
simple but it seams to work for what I need. You can change the range to
what ever cell you need.
Private Sub Worksheet_Change(ByVal Target As Range)
Range("A6") = Now()
End Sub
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.