Microsoft provides programming examples for illustration only, without warranty either expressed or implied. This includes, but is not limited to, the implied warranties of merchantability or fitness for a particular purpose. This article assumes that you are familiar with the programming language that is being demonstrated and with the tools that are used to create and to debug procedures. Microsoft support engineers can help explain the functionality of a particular procedure, but they will not modify these examples to provide added functionality or construct procedures to meet your specific requirements.
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 and through code.
When creating a user form,
ShowModal is set to
True by default, which does not allow interactivity. When the
ShowModal property and the interactivity code conflict, the
ShowModal property usually takes precedence. You can override this precedence in a Visual Basic for Applications macro by first setting the interactivity equal to the
ShowModal setting and then setting interactivity to the setting you want. The following macro code disables interactivity
Application.Interactivity = False
and the following macro code enables interactivity:
Application.Interactivity = True
When the
ShowModal property is
True, interactivity is disabled. When the
ShowModal property is
False, interactivity is enabled.