Thank you Greg for the reply,
However i am not able to link this function to my code. Can you please advise how to modify my codes provided above so that the function provided by you can be attached to it.
I am new with VBA and am not aware about the Functions.
|