Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.links
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.links
|
|||
|
|||
![]()
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
![]()
Posted to microsoft.public.excel.links
|
|||
|
|||
![]()
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 |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Displaying a file in Excel. | New Users to Excel | |||
Displaying file name in a workbook | Excel Discussion (Misc queries) | |||
Displaying an excel file as an active desktop item? | Excel Discussion (Misc queries) | |||
opening an excel file opens a duplicate file of the same file | Excel Discussion (Misc queries) | |||
Getting timestamp from a file in Excel | Excel Worksheet Functions |