I need to show the original creation date as well as the revised date in the header of my spreadsheet. Is there a way to do this in the header? In VBA?
The following is adapted from the help files and gives a list of the available file properties. By the nature of it, it writes to cells in a sheet.
On Error Resume Next
Err.Clear
rw = 1
Worksheets(1).Activate
For Each p In ActiveWorkbook.BuiltinDocumentProperties
Cells(rw, 1).Value = p.Name
Cells(rw, 2).Value = p.Value
rw = rw + 1
Next
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.