_Application.Interactive Property

True if Microsoft Excel is in interactive mode; this property is usually True. If you set this property to False, Microsoft Excel will block all input from the keyboard and mouse (except input to dialog boxes that are displayed by your code). Blocking user input will prevent the user from interfering with the code as it moves or activates Microsoft Excel objects.

Namespace:  Microsoft.Office.Interop.Excel
Assembly:  Microsoft.Office.Interop.Excel (in Microsoft.Office.Interop.Excel.dll)

Syntax

'Declaration
Property Interactive As Boolean
    Get
    Set
'Usage
Dim instance As _Application
Dim value As Boolean

value = instance.Interactive

instance.Interactive = value
bool Interactive { get; set; }

Property Value

Type: System.Boolean

Remarks

This property is useful if you're writing code to communicate with Microsoft Excel from another application.

If you set this property to False, don't forget to set it back to True. Microsoft Excel won't automatically set this property back to True when your code stops running.

See Also

Reference

_Application Interface

_Application Members

Microsoft.Office.Interop.Excel Namespace