ListObject.Refresh Method

Updates the ListObject control with current data and schema from a server that is running Microsoft Windows SharePoint Services.

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

Syntax

'Declaration
Sub Refresh
void Refresh()

Remarks

This method can be used only with ListObject controls that are linked to a SharePoint site. If the SharePoint site is not available, calling this method will cause an exception to be thrown.

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

.NET Framework Security

See Also

Reference

ListObject Interface

Microsoft.Office.Tools.Excel Namespace