Compartilhar via


OLEDBConnection.RefreshOnFileOpen Property

True if the connection is automatically updated each time the workbook is opened. The default value is False. Read/write Boolean.

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

Syntax

'Declaration
Property RefreshOnFileOpen As Boolean
    Get
    Set
'Usage
Dim instance As OLEDBConnection
Dim value As Boolean

value = instance.RefreshOnFileOpen

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

Property Value

Type: System.Boolean
Boolean

Remarks

The connections are not automatically refreshed when you open the workbook by using the Open(String, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object, Object) method in Visual Basic. Use the Refresh() method to refresh the data after the workbook is open.

See Also

Reference

OLEDBConnection Interface

OLEDBConnection Members

Microsoft.Office.Interop.Excel Namespace