>Thank you for the explanation, but why Click does not work the same way ? Shouldn't SelStart be set consistently ?
That's a good question. You saw, I gave you the code and after 10 minutes- explanation, this is how things work in OO environment :-). The only definite thing here is that Click internal code is not the same as Keypress internal code. BTW, you may play with those two lines in Click too (I did not try this) maybe results will shed some light, who knows.
Edward Pikman
Independent Consultant