Read more about resolving errors
Use a breakpoint to suspend running of Visual Basic code
Step through code one line at a time
Examine the values of expressions and variables by using the Visual Basic Editor Immediate window
Monitor the values of expressions and variables by setting a watch expression
Trace Visual Basic procedure calls
Display the value of variables in the Visual Basic Editor Locals window
Display the value of a variable or expression in the Visual Basic Editor when code is suspended