Two of my colleagues in the office wanted to know how can they change the creation date of a workbook, and I knew there would be some property of the Workbook, which can be accessed thru VBA. So here is the simple sub to get the new creation date and the message boxes will show you the old and the new date.
- Open the workbook you want to change the creation date of.
- Press Alt + F11 to bring the VBE window.
- Paste this code.
- Then run the code by pressing F5.
- Delete the code after using it.
Public Sub prop()
MsgBox “Old creation date is ” & ActiveWorkbook.BuiltinDocumentProperties(11)
‘enter the date you want to change and this is the US date format
ActiveWorkbook.BuiltinDocumentProperties(11) = “2/14/2004”
MsgBox “New creation date is ” & ActiveWorkbook.BuiltinDocumentProperties(11)
End Sub