For whatever reason the program I am designing does not want to let me exit the sub, every time I try it gives me an error that says "Runtime Error 5: Invalid procedure or call argument". I have tried using an error trapping routine and it doesnt catch the error, I tried creating a line name and saying "if ... then goto skipsub" and I tried just saying "if ... then exit sub" but nothing works, by the way, here is the line of code that I can't exit the sub with, Does anyone have any idea what is causing this error??? I would really appriciate some suggestions, thanks!

If UCase(Trim(Mid(d$, 23, 25))) <> userlevel$ Then Close: Exit Sub