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 » Links and Linking
Site Map Home Register Authors List Search Today's Posts Mark Forums Read  

Displaying File Timestamp of Another Excel File



 
 
Thread Tools Display Modes
  #1  
Old July 22nd, 2008, 10:51 PM posted to microsoft.public.excel.links
[email protected]
external usenet poster
 
Posts: 11
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  
Old July 23rd, 2008, 12:17 AM posted to microsoft.public.excel.links
Bill Manville
external usenet poster
 
Posts: 258
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  
Old July 23rd, 2008, 05:09 PM posted to microsoft.public.excel.links
[email protected]
external usenet poster
 
Posts: 11
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.
 




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 03:21 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.