QueryTable.WebPreFormattedTextToColumns Property
Excel Developer Reference |
Returns or sets whether data contained within HTML <PRE> tags in the Web page is parsed into columns when you import the page into a query table. The default is True. Read/write Boolean.
Syntax
expression.WebPreFormattedTextToColumns
expression A variable that represents a QueryTable object.
Remarks
This property is used only when the QueryType property of the query table is xlWebQuery and the query returns a HTML document.
If you import data using the user interface, data from a Web query or a text query is imported as a QueryTable object, while all other external data is imported as a ListObject object.
If you import data using the object model, data from a Web query or a text query must be imported as a QueryTable, while all other external data can be imported as either a ListObject or a QueryTable.
The WebPreFormattedTextToColumns property applies only to QueryTable objects.
Example
This example adds a new Web query table to the first worksheet in the first workbook. Note that the example doesn’t parse into columns any data located between the HTML <PRE> tags.
Visual Basic for Applications |
---|
|
See Also