ListObject.Refresh Method

Definition

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

public:
 void Refresh();
public void Refresh ();
abstract member Refresh : unit -> unit
Public Sub 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 <xref:Microsoft.Office.Tools.Excel.ListObject.UpdateChanges%2A> method of the ListObject control before calling the Refresh method.

Applies to