As i said it works...But i have a slight problem, probably with some long file names, which doesn't fit in in the worksheet names, and the code stops at the points where the filename is too long, a couple of names are equal to the filename, but some names which are (too) long(?) are skipped and...