Notice: This website is an unofficial Microsoft Knowledge Base (hereinafter KB) archive and is intended to provide a reliable access to deleted content from Microsoft KB. All KB articles are owned by Microsoft Corporation. Read full disclaimer for more details.

XL2000: Displayed UserForm Does Not Allow Interactivity with Workbook


View products that this article applies to.

This article was previously published under Q234258

↑ Back to the top


Symptoms

When you display a UserForm in Microsoft Excel, you are not allowed to interact with the workbook even though you have enabled interactivity through a Microsoft Visual Basic for Applications macro.

↑ Back to the top


Cause

This problem occurs if your macro sets the Interactive property to True, for example
Application.Interactive = True
				
but the ShowModal property of the UserForm is set to True, which disables interactivity.

↑ Back to the top


Workaround

To work around this problem, use the ShowModal property instead of the macro code to make the user form interactive. To do this, follow these steps:
  1. In Microsoft Excel, press ALT+F11 to activate the Visual Basic Editor.
  2. If the Properties window is not displayed, press F4 or click Properties Window on the View menu.
  3. In the Properties window, click the box to the right of the ShowModal property.

    NOTE: You can find the ShowModal property alphabetically on the Alphabetic tab, or under the Behavior category on the Categorized tab.
  4. Click the drop-down arrow for the ShowModal property, and then click False.

↑ Back to the top


More information

In earlier versions of Microsoft Excel, user forms were always modal, meaning interactivity with the workbook was never allowed when the user form was displayed. In Excel 2000, you can specify interactivity with the workbook through the ShowModal property.

When creating a user form, ShowModal is set True by default, which does not allow interactivity. When the ShowModal property is set to False, interactivity is allowed.

↑ Back to the top


References

For additional information about user forms and interactivity, please see the following article in the Microsoft Knowledge Base:
215861� XL2000: Displayed UserForm Allows Interactivity When ShowModal Property Is Set to True

↑ Back to the top


Keywords: KB234258, kbprb, kbdtacode

↑ Back to the top

Article Info
Article ID : 234258
Revision : 5
Created on : 10/11/2006
Published on : 10/11/2006
Exists online : False
Views : 236