Visual Basic Concepts
Visual Basic only supports multithreading in components marked for unattended execution. In order to make it possible for a component to run unattended, the Unattended Execution option disables all user interaction, including message boxes and system error dialogs.
You can log such events to a file of your choice, or — on Windows NT — to the system event log. The LogMode property of the App object controls the way logging is done, and the LogPath property specifies the name of the log file.
Items entered in the log file include:
Note When your component is running in the development environment, these entries go to the Immediate window instead of to the log file.
For More Information Search in the documentation index or the Object Browser for App Object, LogEvent, LogMode, LogPath, and StartLogging.