I showed the line of code to change in the Change From and Change To snippets. I then showed it all together in the last part using your last request for doing it by a prefix number. I guess that you put the code in a Module? I am not sure how I can explain it any better.

[vba]If Dir(emfFile) = "" Then Exit Sub [/vba] checks for the file's existence. Use F8 to step through your code to debug.

I guess that you can hard code the path in by changing:
[vba]pathDesktop = CreateObject("WScript.Shell").SpecialFolders("Desktop") & "\Importing tests\Batchtesting\" [/vba] To:
[vba]pathDesktop = "C:\Documents and Settings\od\Desktop\Importing tests\Batchtesting\"[/vba]