This documentation is archived and is not being maintained.

_Application.UserControl Property 

True if the application is visible or if it was created or started by the user. False if you created or started the application programmatically by using the CreateObject or GetObject functions and the application is hidden.

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

Dim _Application1 As _Application

Dim returnValue As Boolean
returnValue = _Application1.UserControl

Dim sampleValue As Boolean
_Application1.UserControl = sampleValue

bool UserControl {get; set;}
public boolean get_UserControl();
public void set_UserControl(boolean);
function get UserControl() : Boolean;
function set UserControl(Boolean);

When the UserControl property is False for an object, that object is released when the last programmatic reference to the object is released. If this property is False, Microsoft Excel quits when the last object in the session is released.

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Development Platforms

Windows XP Home Edition, Windows XP Professional, Windows Server 2003, and Windows 2000

Target Platforms