Creation Date Inserted

Mark Gaff

New Member
Joined
Dec 29, 2010
Messages
3
I have a workbook that is used as a template and is read-only. When someone opens the workbook they start a new project and are required to save it with a new name. I would like the date the new file is opened to be displayed. (Not the date I originally created or updated the template file.)

Thanks for your help.
 

Excel Facts

Return population for a City
If you have a list of cities in A2:A100, use Data, Geography. Then =A2.Population and copy down.
Code:
Private Sub Workbook_Open()
Sheets(1).Range("A1").Value = Date
End Sub

I arbitrarily put it in cell A1 but it could be put anywhere. Should work with read only.
 
Upvote 0
When you save the template as a new workbook, it will assign a new "creation date", so this should work
Code:
Private Sub Workbook_Open()
Sheet1.Range("A1") = BuiltinDocumentProperties("creation date")
End Sub
lenze
 
Upvote 0
Greetings. I have the same reqeust,,,, I would like the BuiltinDocumentProperties "Creation Date" to reflect the first time that a template I've created is newly saved,,, just the first time.

I'm a bit confused here, the two replies below don't seem to do what I'd like. I have been unable to change the "Creation Date" even with Properties Plus.

With the file open, File -> Properties - The General tab has a "Created" date that I can change but the Statistics tab has a "Created" date that I can't change. This "Created Date" on the Statistics tab appears to be the BuiltInDocumentsProperties field that I'm looking for.

On a logic issue, how can the "Creation Date" change for only the first time and not subsequest openings? I don't follow.

Thanks for your help! :bow:
 
Upvote 0

Forum statistics

Threads
1,224,521
Messages
6,179,280
Members
452,902
Latest member
Knuddeluff

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top