Share via


ODBCConnection.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 ODBCConnection
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. Use the Refresh() method to refresh the data after the workbook is open.

See Also

Reference

ODBCConnection Interface

ODBCConnection Members

Microsoft.Office.Interop.Excel Namespace