set cell value and workbook Creation date

  • Thread starter Thread starter William Hamilton
  • Start date Start date
W

William Hamilton

How can I set the value of a cell with the creation date of the workbook?

Each workbook is beaing created from a custom template.

TIA

W
 
William,

Either through a macro or through a User-Defined-Function:

Sub TryNow()
ActiveCell.Value = ActiveWorkbook.BuiltinDocumentProperties("Creation
Date").Value
End Sub

Use this like

=CD()

Function CD() As Variant
CD = Application.Caller.Parent.Parent.BuiltinDocumentProperties("Creation
Date").Value
End Function

HTH,
Bernie
MS Excel MVP
 

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

Back
Top