Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Bob-123456789
 
Posts: n/a
Default Can I write an excel formula to display the file save date?

In Excel 2003 I often use the following formula to display the name (and
path) of the file:
=CELL("filename",T5)

I have not figured out if there is a way to display other file information
in a cell such as the file save date (& time) or file size.

Is there a way to do this??
  #2   Report Post  
Posted to microsoft.public.excel.worksheet.functions
Gord Dibben
 
Posts: n/a
Default Can I write an excel formula to display the file save date?

Bob

You can use a UDF to find some properties.

'=DOCPROPS("last author")

'=DOCPROPS("last save time")

'=DOCPROPS("creation date")

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

Don't know the syntax for "file size". Perhaps someone else can jump in with
that.


Gord Dibben MS Excel MVP

On Thu, 26 Jan 2006 10:26:04 -0800, "Bob-123456789"
wrote:

In Excel 2003 I often use the following formula to display the name (and
path) of the file:
=CELL("filename",T5)

I have not figured out if there is a way to display other file information
in a cell such as the file save date (& time) or file size.

Is there a way to do this??


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
excel array formula gordo Excel Worksheet Functions 14 October 18th 05 05:19 PM
Access a excel file through FTP without write protection jj Excel Discussion (Misc queries) 0 October 9th 05 05:38 PM
Excel XP: File name in Title Bar not changed after Save As... Dominic Excel Discussion (Misc queries) 9 August 1st 05 12:58 PM
save excel file from a table delimited file (.txt) using macros sedamfo New Users to Excel 1 February 15th 05 04:19 AM
Save & Save As features in file menu of Excel Blue Excel Discussion (Misc queries) 9 December 27th 04 08:49 PM


All times are GMT +1. The time now is 02:52 PM.

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"