Hi, I'd like a script which search for all occurences of a word in a list and returns the number of all lines. an example : a list with : Peter John Richard John George John Philip Tom So if i call the code for "John", the result should be : 2 4 6 I've tried with lineoffset but it gives only the first occurence. thanks. -- Greetings. Yves COPPE Email : yvescoppe at skynet.be