Syntax

expression.WebPreFormattedTextToColumns

expression A variable that represents a QueryTable object.

Remarks

This property is used only when the property of the query table is xlWebQuery and the query returns a HTML document.

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
Set shFirstQtr = Workbooks(1).Worksheets(1) Set qtQtrResults = shFirstQtr.QueryTables _ .Add(Connection := "URL;http://datasvr/98q1/19980331.htm", _ Destination := shFirstQtr.Cells(1,1)) With qtQtrResults .WebFormatting = xlNone .WebPreFormattedTextToColumns = False .Refresh End With
web pre formatted text to columns Web Pre Formatted Text To Columns Property webpre webpreformatted webpreformattedtext webpreformattedtextto WebPreFormattedTextToColumns WebPreFormattedTextToColumns Property

See also: