Remma questa riga:

'on error resume next

mettendoci un apice davanti

Roby