Compartilhar via


OLEObjects.AutoLoad Property

True if the OLE object is automatically loaded when the workbook that contains it is opened.

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

Syntax

'Declaration
Property AutoLoad As Boolean
    Get
    Set
'Usage
Dim instance As OLEObjects
Dim value As Boolean

value = instance.AutoLoad

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

Property Value

Type: System.Boolean

Remarks

This property is ignored by ActiveX controls. ActiveX controls are always loaded when a workbook is opened.

For most OLE object types, this property shouldn’t be set to True. By default, the AutoLoad property is set to False for new OLE objects; this saves time and memory when Microsoft Excel is loading workbooks. The benefit of automatically loading OLE objects is that, for objects that represent volatile data, links to source data can be reestablished immediately and the objects can be rendered again, if necessary.

See Also

Reference

OLEObjects Interface

OLEObjects Members

Microsoft.Office.Interop.Excel Namespace