Last Modified UDF Row Function

mdonovan890

New Member
Joined
Dec 22, 2016
Messages
24
I do not know if this is possible however, what I am looking for is to modify this UDF function to show the date that a cell was last modified. Currently, it is only showing the date that the UDF is inserted, not the actual date that the cell was modified.


For Example:


-If I am insert the UDF Function on 5/3/20

-A Cell Modified on 4/13/20

-The UDF Should return 4/13/20, NOT 5/3/20.


Current UDF Function:
Public Function Lastmodified(c As Range)

Lastmodified = Now()

End Function
 

Excel Facts

Using Function Arguments with nested formulas
If writing INDEX in Func. Arguments, type MATCH(. Use the mouse to click inside MATCH in the formula bar. Dialog switches to MATCH.
4/13/20 is BEFORE you entered the function - Excel does not remember when a cell was modified

The function works correctly for amendments to the cell made AFTER the function is entered
 
Upvote 0
4/13/20 is BEFORE you entered the function - Excel does not remember when a cell was modified

The function works correctly for amendments to the cell made AFTER the function is entered


Hi Yongle,
Yes, that is correct. Is there a way via UDF or VBA to obtain the last modified date prior to the function being entered?
 
Upvote 0
it is not possible at individual cell level
it is possible to get the last modified date for a workbook
 
Last edited:
Upvote 0

Forum statistics

Threads
1,224,987
Messages
6,182,161
Members
453,093
Latest member
Soffy

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