View Single Post
  #3   Report Post  
Posted to microsoft.public.excel.links
[email protected] rockfalls3@yahoo.com is offline
external usenet poster
 
Posts: 16
Default Displaying File Timestamp of Another Excel File

On Jul 22, 7:17*pm, Bill Manville wrote:
Put this in a standard module in your workbook:

Function FileDate(FileName As String) As Date
* Application.Volatile
* FileDate = FileDateTime(FileName)
End Function

Put this in a cell in a worksheet in your workbook
=FileDate("C:\Temp\MyFile.xls") *[amend as appropriate]


Thanks, Bill, but for some reason I get a "#NAME?" error after pasting
the function
in the VB editor for that sheet, and putting the "=FileDate()" in a
cell in my workbook.
Suggestions? I am in an office with MS Office permissions tightly
controlled, so I cannot
download add-ins or install new software without Helpdesk
intervention.