I have created a VB program runs within a CAD program. The code is now that long that I am getting a "Procedure to large" error when I go to run it. I know I need to divide it into sections.

Being a novice at VB I am not sure how to do this.

Can someone please help.