Jup. I was wondering why in n2 the word exactly stood. I didn't saw it in the popdown list just under the first textfield.
Later i noticed that there was an extra match field!
But at this moment, i already found the problem: You was working with FileSearch.Filename = "*.txt". But my documents are all *.doc. In my own code, i allready had *.doc, so thats why it was working with me (with the extra quotes)
BTW, i didn't REALLY test it, but the results are the same, if i set 'exactly' or not
Now i want to load this function in its memory every time excel starts. is that possible (like =sum, or =if etc)? Or do i have to run the module, where the function is in, in a excel sheet.