No problem, wanted to check it worked before I launched into an explanation!
There's not really a lot different from your previous code. just these three lines really
just keeps ploughing on if it sees an error. 'On error goto N' (in my 1st post) will jump to line N on the 1st error, but raise an exception on a 2nd - which is no good if your using it (there might be something to clear the error status and resume, but i can't remember what it is)
ensures myvalue is cleared from one loop to the next
Just checks that the value in myvalue has changed (i.e. that it is no longer = nothing) and runs code if it has.
good luck
Mat
Bookmarks