QueryTable.WebSelectionType Property
Returns or sets a value that determines whether an entire Web page, all tables on the Web page, or only specific tables on the Web page are imported into a query table. Read/write XlWebSelectionType.
Syntax
expression.WebSelectionType
expression A variable that represents a QueryTable object.
Remarks
Use this property only when the query table's QueryType property is set to xlWebQuery and the query returns an HTML document.
If the value of this property is xlSpecifiedTables, you can use the WebTables property to specify the tables to be imported.
| XlWebSelectionType can be one of these XlWebSelectionType constants. |
| xlEntirePage |
| xlAllTables default |
| xlSpecifiedTables |
Example
This example adds a new Web query table to the first worksheet in the first workbook and then imports data from the first and second tables in the Web page.
| Visual Basic for Applications |
|---|
|