XL98: UserForm Remains on Top of Module When Error Occurs

ID: Q176009

The information in this article applies to:

SYMPTOMS

When you receive a run-time error in a Visual Basic for Applications macro while a UserForm is visible, and you click Debug in the Microsoft Visual Basic window, the UserForm remains displayed in front of the module sheet.

WORKAROUND

To work around this problem, use the WindowShade feature that is provided by the Macintosh System software to hide the UserForm. To do this, double- click the title bar of the UserForm. The body of the UserForm window is hidden, but the title bar remains visible.

If you are using System 7.5 or later, and the UserForm window is not hidden when you double-click the title bar of the UserForm, the WindowShade feature has not been made available. To make the WindowShade feature available, use one of the following methods.

Method 1: Mac OS 8.0

To make this feature available, follow these steps:

1. Point to Control Panels on the Apple menu, and then click Appearance.

2. Click "Double-click title bar to collapse" if it is not already

   selected.

3. Close the Appearance window.

Method 2: Macintosh System Software Versions 7.5.x, 7.6

To make this feature available, follow these steps:

1. Point to Control Panels on the Apple menu, and then click WindowShade.

2. Click "Clicks to hide or show window," and then close the WindowShade

   window.

STATUS

Microsoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. We are researching this problem and will post new information here in the Microsoft Knowledge Base as it becomes available.

REFERENCES

For more information about handling errors in Visual Basic for Applications, click the Office Assistant in the Visual Basic Editor, type "handling errors," click Search, and then click to view "Continue Code Execution."

NOTE: If the Assistant is hidden, click the Office Assistant button on the Standard toolbar. If Microsoft Help is not installed on your computer, please see the following article in the Microsoft Knowledge Base:

   ARTICLE-ID: Q120802
   TITLE     : Office: How to Add/Remove a Single Office
               Program or Component

Additional query words: XL98
Keywords          : DBugDebugW 
Version           : MACINTOSH:98
Platform          : MACINTOSH
Issue type        : kbbug

Last Reviewed: February 5, 1998