on resume next is used to ignore or handle errors yourself
if an error occurs the code will continue on the next line
in this case the error raised if the password is incorrect is ignored and another try is made.
the real bad part of this code is the lack of the statement:
just before the end of the sub. in this piece of $#%^$%^ you will end up ignoring errors in the rest of your code resulting in very unpredictable results.
So take it from me for every resume next You should have at least 1 goto 0
Bookmarks