Is there a function to show when the file was last updated?

L

Legacy 55058

Guest
Is there a function of when the file was last updated?
 

Excel Facts

Square and cube roots
The =SQRT(25) is a square root. For a cube root, use =125^(1/3). For a fourth root, use =625^(1/4).
Yes, that is the information I am looking for, but :( I am looking to have that information placed into a cell and retrieved by a function, or if there is VBA script to perform that.
 
Upvote 0
When you say the function, do you mean the code, or are you using one of the formula approaches mentioned in the reference thread? If you're using the code, you can place it in the ThisWorkbook module as an On Open event. Numerous examples on the board. To get to this module, right click on the Excel icon to the left of "File" on the menu bar and choose view code, or open the VBE (ALT+F11) and select it from the left hand project explorer.

HTH

lenze
 
Upvote 0
I am using the function mentioned in the thread. I noticed that it does not update the last saved time on the file that I reference within the function, unless you modify the function again.

=lastsaved("\\c:blah.blah.blah.xls")

Is there a way to have this function update when the workbook is opened. I looked into a open event, but I am by no means a VB genius.
 
Upvote 0
I'm not sure about Juan's function. Perhaps he will address that. Using code, however, you can place the following as an On Open Event in the ThisWorkbook module.
Code:
Sheet1.Range("$A$1").Value = ActiveWorkbook.BuiltinDocumentProperties.Item("Last Save Time")

HTH

lenze
 
Upvote 0

Forum statistics

Threads
1,214,782
Messages
6,121,532
Members
449,037
Latest member
tmmotairi

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