L'istruzione On Error sarebbe da dimenticare totalmente! Al suo posto, si usa Try...Catch.