Retrieve the date of another excel file

  • Thread starter Thread starter BRABUS
  • Start date Start date
B

BRABUS

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
 
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
 
Mike said:
This macro takes a path and filename from A1 and writes the date an
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

:
-

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



Thanks thats exactly what I needed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Quote Marks Question 2
Remove date format? 3
Email excel spreadsheet 1
Displaying zeros in cells 2
custom date format 1
Dates in Excel 2007 5
Date Formatting in Excel Urgent 1
Text format inconsistant 5

Back
Top