This documentation is archived and is not being maintained.

WebDisableDateRecognition Property [Excel 2003 VBA Language Reference]

Office 2003

True if data that resembles dates is parsed as text when you import a Web page into a query table. False if date recognition is used. The default value is False. Read/write Boolean.


Use this property only when the query table's QueryType property is set to xlWebQuery and the query returns an HTML document.


This example turns off date recognition so that Web page data that resembles dates is imported as text. The example then refreshes the query table.

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
    .WebDisableDateRecognition = True
End With

Applies to | QueryTable Object