
If Not (Filename Like "\\*" Or Filename Like ":\*") Thenįilename = ThisWorkbook. 'If it is a relative address insert this workbook's path Where: Title: Bowling Handicap Calculator Subject: Bowling Author: Skip Horner Last modified by: Skip Horner Created Date: 3:22:39 AM Other titles.

You need to press two different shortcut keys to enter it. When you enter both date and time, Excel automatically picks the right format to display it.
#EXCEL DATE CELL LAST MODIFIED UPDATE#
And if you want to update the time stamp you need to enter it again. This is not a dynamic method, you have a static timestamp. Of cause this may cause your workbook to react a littleįunction LastModified(m圜ell As Range) As Date If you want to save time and have fewer cells, this method is perfect. Date or time values are held as timestamp in Excel (a simple floating point value), and a number format mask is used. the date you think is right, go through the agreement and then modify the. If you do this then all of the 'LastModified' dates will be updated whenever you push F9 or if you modify any cells value. Setting a date and/or time value in a cell. Excel will automatically select the entire column of cells with number values. To ensure that a recalculate occurs whenever you push F9, enter "=NOW()" into any cell on the worksheet. To be able to update these dates I have made the function 'Volatile' so it will recalculate whenever any calculation of the workbook is done. Enter the current date as a fixed date into cell C2 using the Ctrl+ keyboard shortcut.

I presume people are updating file all of time and so this workbooks values don't change very often only the files that the hyperlinks reference. Author: Sharlie Last modified: January 3 2018. You may have to format the cell to a date format.Īlso, changing a hyperlink does not cause this (or any other) function to recalculate. if your hyperlink is in cell A1 then in B1 type "=LastModified("A1")" If the hyperlink is a valid local file then the function will return a date else you will get a "#VALUE" error. Now in any cell you can enter the function.
#EXCEL DATE CELL LAST MODIFIED CODE#
I asked the same question on .functions and got the following response which appears to do what was needed, although I haven't tried to 'break' it yet:Ģ/ Goto the VBA screen (Tools: Macro: Visual Basic Editor or Alt-F11)ģ/ Open the project explorer (View: Project explorer)Ĥ/ Select your workbook in the project explorer then right click and insert a module.ĥ/ Copy the code below and paste it into the module's code screen.Ĭongrats, you have just made a user defined function.
