Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 11,058
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   Report Post  
Posted to microsoft.public.excel.worksheet.functions
external usenet poster
 
Posts: 22,906
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?


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
File Creation Date Felicity Excel Discussion (Misc queries) 2 February 5th 07 06:06 PM
Syntax for Info or Cell function for xl. file creation date driller Excel Worksheet Functions 5 January 29th 07 07:51 PM
How do I show file creation date in a cell in Excel? Eddie Armstrong Excel Worksheet Functions 7 December 14th 05 09:21 PM
Ouput File Creation Date Sloth Excel Discussion (Misc queries) 1 October 10th 05 06:05 PM
file creation date munken Excel Worksheet Functions 2 August 31st 05 01:40 PM


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

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

About Us

"It's about Microsoft Excel"