Checking last saved time

austin350s10

Active Member
Joined
Jul 30, 2010
Messages
321
Is there a way for a VBA script to reference a seperate file and return that files last saved time as a string?

I know how to check the last saved time of an active workbook but how can a dirfferent workbook that is not opened be checked?

If it helps I am only checking other .xlsm files nothing else.

I was using something like this but it only checks the active workbook:

Code:
Dim FileDate As String
FileDate = WorksheetFunction.Text(ThisWorkbook.BuiltinDocumentProperties("last save time").Value, "mm/dd/yyyy")
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Maybe Open the workbook, read last modified and then close workbook.
 
Upvote 0

Forum statistics

Threads
1,215,034
Messages
6,122,782
Members
449,095
Latest member
m_smith_solihull

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top