I have the following function 'Trigger' in Excel. It watches a range A1:A10 for any changes to the cell values so =Trigger(A1:A10).
Works great if the cell values are text, ie. YES or NO, if I make a change to one cell in this range it only displays the msgbox with that particular cell address which is what I want.
BUT... I need the range to be numbers, i.e. 10.47. If I make the range numbers and change one cell value the function displays a msgbox for each cell address in the range even though only one cell value has changed. Please help! Appreciation in advance.
Function Trigger(ByVal rEntireRange As Range) As Date For Each rCell In rEntireRange If (Not IsEmpty(rCell)) And (Not IsError(rCell)) And (rCell.ID <> rCell.Value) Then MsgBox rCell.Address & " is changed" rCell.ID = rCell.Value End If Next rCell Trigger = Now End Function
I might be missing something, but what you are asking for is exactly what the Worksheet Change event is for.
Regards, TMS
Welcome to the Forum, unfortunately:
This is a duplicate post and as such does not comply with Rule 5 of our forum rules. This thread will now be closed, you may continue in your other thread.
Thread Closed.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks