Hi, am i doing something wrong or is it really not possible to check if a string does not begin/ends with a prefix/suffix If tFile ends not with ".xls" then….. This does not work. Is it really not possible? Regards, Matthias -- Matthias Rebbe matthias (at) rebbe.tk Tel +49.5741.310000 Tel +49.160.5504462 --