title | keywords | f1_keywords | api_name | ms.assetid | ms.date | ms.localizationpriority | ||
---|---|---|---|---|---|---|---|---|
ListObject.Publish method (Excel) |
vbaxl10.chm734074 |
|
|
8b25819d-51c3-f505-8b9c-184355c48055 |
04/30/2019 |
medium |
Publishes the ListObject object to a server that is running Microsoft SharePoint Foundation.
expression.Publish (Target, LinkSource)
expression A variable that represents a ListObject object.
Name | Required/Optional | Data type | Description |
---|---|---|---|
Target | Required | Variant | Contains an array of String values, as described in the Remarks section. |
LinkSource | Required | Boolean | See the Remarks section. |
A String value that represents the URL of the published list on the SharePoint site.
The Target parameter contains an array of String elements, as described in the following table.
Element # | Contents |
---|---|
0 | URL of SharePoint server |
1 | ListName (Display Name) |
2 | Description of the list. Optional. |
If the ListObject object is not currently linked to a list on a SharePoint site, setting LinkSource to True creates a new list on the specified SharePoint site.
If the ListObject object is currently linked to a list on a SharePoint site, setting LinkSource to True replaces the existing link (you can only link the list to one SharePoint site).
If the ListObject object is not currently linked, setting LinkSource to False leaves the ListObject object unlinked.
If the ListObject object is currently linked to a SharePoint site, setting LinkSource to False keeps the ListObject object linked to the current SharePoint site.
[!includeSupport and feedback]