Compartilhar via


_QueryTable.RefreshOnFileOpen Property

True if the PivotTable cache or query table 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 _QueryTable
Dim value As Boolean

value = instance.RefreshOnFileOpen

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

Property Value

Type: System.Boolean

Remarks

Query tables and PivotTable reports are not automatically refreshed when you open the workbook by using the Open method. Use the Refresh method to refresh the data after the workbook is open.

See Also

Reference

_QueryTable Interface

_QueryTable Members

Microsoft.Office.Interop.Excel Namespace