ExcelBanter

ExcelBanter (https://www.excelbanter.com/)
-   Excel Discussion (Misc queries) (https://www.excelbanter.com/excel-discussion-misc-queries/)
-   -   Retrieve the date of another excel file (https://www.excelbanter.com/excel-discussion-misc-queries/142234-retrieve-date-another-excel-file.html)

BRABUS[_2_]

Retrieve the date of another excel file
 

Please can someone show me (in an idiots format) what I need to do to
show the last saved date of a different excel file that I provide the
name and file location of in one cell in my current spreadsheet and
then show it in a cell on this same spreadsheet.

Thanks
Rob




--
BRABUS

Mike H

Retrieve the date of another excel file
 
This macro takes a path and filename from A1 and writes the date and time of
the last modification to A2

Sub getthedate()
filedate = FileDateTime(Worksheets("Sheet1").Cells(1, 1).Value)
Worksheets("Sheet1").Cells(2, 1).Value = filedate
End Sub

Mike

"BRABUS" wrote:


Please can someone show me (in an idiots format) what I need to do to
show the last saved date of a different excel file that I provide the
name and file location of in one cell in my current spreadsheet and
then show it in a cell on this same spreadsheet.

Thanks
Rob




--
BRABUS


BRABUS[_3_]

Retrieve the date of another excel file
 

Mike H;2139648 Wrote:
This macro takes a path and filename from A1 and writes the date and
time of
the last modification to A2

Sub getthedate()
filedate = FileDateTime(Worksheets("Sheet1").Cells(1, 1).Value)
Worksheets("Sheet1").Cells(2, 1).Value = filedate
End Sub

Mike

"BRABUS" wrote:
-

Please can someone show me (in an idiots format) what I need to do to
show the last saved date of a different excel file that I provide the
name and file location of in one cell in my current spreadsheet and
then show it in a cell on this same spreadsheet.

Thanks
Rob




--
BRABUS
-




Thanks thats exactly what I needed.




--
BRABUS


All times are GMT +1. The time now is 07:25 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
ExcelBanter.com