The information in this article applies to:
SYMPTOMSApplication.Interactive does not reset itself to a default value after the end of the macro is reached. CAUSEThe Interactive property of the Application object allows a macro to block all user input from both the keyboard and the mouse. The property is useful in situations where user input has the potential to disrupt macro operations. However, unlike most of the Read/Write properties of the Microsoft Excel Application object, Application.Interactive does not reset itself to a default value after the end of the macro is reached. Because of this, if the interactive property is not reset back to a true value in the code of the macro, or an error occurs during execution of the macro, Microsoft Excel will not respond to user input even though the macro has technically stopped executing. RESOLUTION
If you forget to reset the property back to true, or encounter an
error in the execution of the code, you will likely need to shut down
that instance of Microsoft Excel and fix the line of code that caused the
error.
Sample Visual Basic ProcedureMicrosoft provides programming examples for illustration only, without warranty either expressed or implied, including, but not limited to, the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes that you are familiar with the programming language being demonstrated and the tools used to create and debug procedures. Microsoft Support professionals 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 needs. If you have limited programming experience, you may want to contact the Microsoft fee-based consulting line at (800) 936-5200. For more information about the support options available from Microsoft, please see the following page on the World Wide Web:http://www.microsoft.com/support/supportnet/overview/overview.aspIf it is necessary to enable user input to Microsoft Excel without restarting the program, you can reset the property using Automation through a Visual Basic for Applications macro. NOTE: The success of the following macro depends on the ability to open a separate instance of Microsoft Excel. Under Windows 3.x, the number and complexity of programs that can be running concurrently is directly dependent on available system resources. If the instance of Microsoft Excel that is not responding, or the instance you are trying to open contains many worksheets, charts and so on, system resources will be significantly reduced. In Microsoft Excel 98, you cannot start a separate instance of Microsoft Excel, and therefore must run the macro from another program. The method for opening a separate instance of Microsoft Excel varies depending on the operating system. Windows 3.x and Windows NT
Windows 95
Microsoft Excel 5.0 on the Apple Macintosh
Microsoft Excel 98 Macintosh EditionAs stated previously, you cannot start more than one instance of Microsoft Excel 98; therefore, you must run the Visual Basic for Applications Sub procedure from another Microsoft Office program. In this example, we will use Microsoft Word 98.
STATUSMicrosoft has confirmed this to be a problem in the Microsoft products listed at the beginning of this article. REFERENCES
For more information about the Interactive property in Microsoft Excel 97,
from the Visual Basic Editor, click the Office Assistant, type
interactive, click Search, and then click to view "Interactive
Property."
Q176476 OFF: Office Assistant Not Answering Visual Basic Questions"Microsoft Excel 5 Visual Basic for Applications Reference", version 5.0, page 342 "Microsoft Excel/Visual Basic Reference", second edition, page 394 Additional query words: 5.00a 5.00c
Keywords : kbole kbprg kbdta kbdtacode PgmOthr KbVBA |
Last Reviewed: November 9, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |