A project marked for Unattended Execution cannot have any visible user interface elements. This message has the following cause and solution:
To solve this problem, remove all forms from the project or change the Startup Object in the Project Properties dialog box to (none) or Sub Main.