Hi, Bingo123:
"Sub main" is a startup form to an application. It seems that you do not have this startup form. Normally, a VB project can have many forms (windows), and developers need to specify which form that you want to assign the startup form.
It also seem swApp object is not defined...