ListObject.Unlink method (Excel)
Removes the link to a Microsoft SharePoint Foundation site from a list. Returns Nothing.
Syntax
expression.Unlink
expression A variable that represents a ListObject object.
Remarks
After this method is called and the list is unlinked, it cannot be reversed.
Example
The following example unlinks a list from a SharePoint site.
Sub UnlinkList()
Dim wrksht As Worksheet
Dim objListObj As ListObject
Set wrksht = ActiveWorkbook.Worksheets("Sheet1")
Set objListObj = wrksht.ListObjects(1)
objListObj.Unlink
End Sub
Support and feedback
Have questions or feedback about Office VBA or this documentation? Please see Office VBA support and feedback for guidance about the ways you can receive support and provide feedback.