|
-
Sep 7th, 2012, 12:44 PM
#10
Re: My code works fine on winXP but get error 52 on win7
I disagree, On Error Resume Next is not the way to go. And if you do use it then you need to check the error code after each line where an error might occur otherwise your code and the user will think that there is nothing wrong and this can lead to all sorts of problems.
Much better to use an Error Handler then you can choose to ignore some errors and let the user know about others, For example you may want to tell them to place a disk in the drive or that an error has occured and the process can not be completed or whatever the case may be.
In some cases OERN will workout but it is not good practice to use and a very bad habit to develop.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|