A Microsoft Office (Excel, Word) forum. OfficeFrustration

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » OfficeFrustration forum » Microsoft Excel » Worksheet Functions
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

How can I get date of file creation to XLS cell in date format?



 
 
Thread Tools Display Modes
  #1  
Old November 8th, 2007, 12:25 PM posted to microsoft.public.excel.worksheet.functions
Radek Simek
external usenet poster
 
Posts: 1
Default How can I get date of file creation to XLS cell in date format?

I'm using Excel Standard Edition 2003 (11.5612.8132) and have following
problem. I need to get date of file creation (e.g. from Properties - file
created) to specific excel cell (in day format) of the same file. Does any
simple way (function?) exist?
  #2  
Old November 8th, 2007, 12:46 PM posted to microsoft.public.excel.worksheet.functions
Radek Simek[_2_]
external usenet poster
 
Posts: 3
Default How can I get date of file creation to XLS cell in date format?

Or if you know any other way how to handle this problem, feel free to mention
it.

The situation is following (in more detail): I have set of items of
different stautses (approved, in approving,...) and need to find out how many
items changed its' status from "in approving" to "approved" in last 7 days
(not from now, but from time when the report was generate). I can't use
function TODAY() as it wolud take date of today as one to copmare with. I
need somehow get the date of file creation - date when data were generated
from SAP).

Thanks for any advice.

"Radek Simek" wrote:

I'm using Excel Standard Edition 2003 (11.5612.8132) and have following
problem. I need to get date of file creation (e.g. from Properties - file
created) to specific excel cell (in day format) of the same file. Does any
simple way (function?) exist?

  #3  
Old November 8th, 2007, 03:50 PM posted to microsoft.public.excel.worksheet.functions
Gary''s Student
external usenet poster
 
Posts: 7,584
Default How can I get date of file creation to XLS cell in date format?

Try this one-line UDF:

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

--
Gary''s Student - gsnu200755


"Radek Simek" wrote:

I'm using Excel Standard Edition 2003 (11.5612.8132) and have following
problem. I need to get date of file creation (e.g. from Properties - file
created) to specific excel cell (in day format) of the same file. Does any
simple way (function?) exist?

  #4  
Old November 8th, 2007, 04:24 PM posted to microsoft.public.excel.worksheet.functions
Gord Dibben
external usenet poster
 
Posts: 20,252
Default How can I get date of file creation to XLS cell in date format?

No built-in Function

Function DocProps(prop As String)
Application.Volatile
On Error GoTo err_value
DocProps = ActiveWorkbook.BuiltinDocumentProperties _
(prop)
Exit Function
err_value:
DocProps = CVErr(xlErrValue)
End Function

'=DOCPROPS("author")
'or
'=DOCPROPS("last save time")
'or
'DOCPROPS("creation date")


Gord Dibben MS Excel MVP

On Thu, 8 Nov 2007 04:25:00 -0800, Radek Simek Radek
wrote:

I'm using Excel Standard Edition 2003 (11.5612.8132) and have following
problem. I need to get date of file creation (e.g. from Properties - file
created) to specific excel cell (in day format) of the same file. Does any
simple way (function?) exist?


 




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Forum Jump


All times are GMT +1. The time now is 12:13 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 OfficeFrustration.
The comments are property of their posters.