1. Turn Option Strict ON. It's not just helping your program run faster but also helping your write better code.
2. Do not use On Error Resume Next. Use Try/Catch block instead. But generally, you should avoid exceptions as much as you can.