Applies To
Application Object.
Description
True if Microsoft Excel is in interactive mode; this property is usually True. If you set it 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 macro as it moves or activates Microsoft Excel objects. Read-write.
Remarks
This property is useful if you are using DDE, AppleEvents, or OLE Automation 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 will not set this property back to True when your macro stops running.
Example
This example sets the Interactive property to False while it is using DDE in Windows and then sets this property back to True when it is done. This prevents the user from interfering with the macro.
Application.Interactive = False Application.DisplayAlerts = False channelNumber = Application.DDEInitiate( _ app:="WinWord", _ topic:="C:\WINWORD\FORMLETR.DOC") Application.DDEExecute channelNumber, "[FILEPRINT]" Application.DDETerminate channelNumber Application.DisplayAlerts = True Application.Interactive = True