Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.misc
external usenet poster
 
Posts: 11,058
Default Formula for Created on Date

Changing formats won't work because the function returns a string. This
version:

Public Function creation_date() As Date
creation_date = ActiveWorkbook.BuiltinDocumentProperties("Creation Date")
End Function

returns a true date/time that you can format as date-only
--
Gary''s Student - gsnu200757


"Joe M." wrote:

This works fine except it displays in Date/Time format. I tried to change the
cell format but that doesn't do anything. Also I tried to reference from
another cell and format that cell to display as MM/DD/YYYY and other date
formats but that doesn't work either. How to I change the format?

Thanks,
Joe M.

"Gary''s Student" wrote:

Try this one-line UDF:

Public Function creation_date() As String
creation_date = ActiveWorkbook.BuiltinDocumentProperties("Creation Date")
End Function

--
Gary''s Student - gsnu200757


"Joe M." wrote:

I am trying to automatically insert the file created on date in a cell. Is
there a formula to do this?

Thanks,

Joe M.

Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Created Date steph44haf Excel Worksheet Functions 3 May 12th 07 06:16 PM
created date on General Tab Mrs. C. Excel Discussion (Misc queries) 3 May 10th 07 02:10 AM
Dipslay the created on date Marie Bayes Excel Discussion (Misc queries) 4 January 10th 07 06:05 PM
Date formatting of formula created dates Fred Excel Discussion (Misc queries) 2 October 23rd 06 02:40 PM
Adding a date when something was created. Aikisteve Excel Worksheet Functions 6 August 11th 06 11:08 AM


All times are GMT +1. The time now is 03:42 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"