Compartilhar via


ListObject.Refresh Method

Returns the current data and schema for the list from the server that is running Microsoft Windows SharePoint Services.

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

Syntax

'Declaration
Sub Refresh
'Usage
Dim instance As ListObject

instance.Refresh()
void Refresh()

Remarks

This method can be used only with lists that are linked to a SharePoint site. If the SharePoint site is not available, calling this method will return an error.

Calling the Refresh method does not commit changes to the list in the Excel workbook. Uncommitted changes in the list in Excel are discarded when the Refresh method is called. To avoid losing any uncommitted changes, call the UpdateChanges method of the ListObject object before calling the Refresh method.

See Also

Reference

ListObject Interface

ListObject Members

Microsoft.Office.Interop.Excel Namespace