To learn how to debug code in Visual Basic, change the code in the Code window to cause errors to occur while executing it.
There are various ways to
debug a program. Because this is a simple program, this debugging exercise
is also simple.
Delete the letter r from the variable Part and change the name of the method InsertSketch to InsertSketch2.

In the SolidWorks graphics area, select the top face.