Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 16
Default Displaying File Timestamp of Another Excel File

I have a link from an external Excel file displaying data within my
(current) Excel file.

To make sure I am pulling the latest version of the data and
displaying the timestamp of that
latest data, is there a way to display the timestamp of that external
file within my (current)
spreadsheet?


Many thanks....

(previously posted to microsoft.public.excel.charting)
  #2   Report Post  
Posted to microsoft.public.excel.links
external usenet poster
 
Posts: 473
Default Displaying File Timestamp of Another Excel File

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]


Bill Manville
MVP - Microsoft Excel, Oxford, England
No email replies please - respond to newsgroup

  #3   Report Post  
Posted to microsoft.public.excel.links
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.
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
Displaying a file in Excel. Stephen New Users to Excel 1 March 20th 08 12:08 AM
Displaying file name in a workbook Premier Geoff Excel Discussion (Misc queries) 5 January 26th 07 07:07 PM
Displaying an excel file as an active desktop item? david.fredrikss Excel Discussion (Misc queries) 0 May 22nd 06 12:54 PM
opening an excel file opens a duplicate file of the same file skm Excel Discussion (Misc queries) 1 December 7th 05 05:52 PM
Getting timestamp from a file in Excel Patrick Excel Worksheet Functions 1 July 15th 05 12:55 PM


All times are GMT +1. The time now is 06:05 PM.

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"