Export (0) Print
Expand All
Expand Minimize

WorkbookBase.UserControl Property

Gets or sets a value that indicates whether the workbook or application was created or opened by the user.

Namespace:  Microsoft.Office.Tools.Excel
Assembly:  Microsoft.Office.Tools.Excel.v4.0.Utilities (in Microsoft.Office.Tools.Excel.v4.0.Utilities.dll)

public bool UserControl { get; set; }

Property Value

Type: System.Boolean
true if the workbook or application was created or opened by the user; false if the workbook or application was created or opened programmatically from another Microsoft Office application with the Open method or the VBA.Interaction.CreateObject or VBA.Interaction.GetObject method.

If Microsoft Office Excel is visible to the user, or if you call the UserControl property of a Excel Application or Workbook object from within a Excel code customization, this property will always return true.

Show:
© 2014 Microsoft