I am using the code below to retrieve data from a web site:
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.WebTables = "10,11,12,13,14,15,16,17"
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
one column in the web site contains strings with values such as 11/2 that I want to retrieve as is, but in the Excel sheet I get a date,that is, 11-feb.
I have forced the column format to Text, but it doesn't fix the problem.
What should be done?
With ActiveSheet.QueryTables.Add(Connection:=destinationURL, Destination:=Range("a1"))
.WebTables = "10,11,12,13,14,15,16,17"
.BackgroundQuery = True
.TablesOnlyFromHTML = True
.Refresh BackgroundQuery:=False
.SaveData = True
End With
one column in the web site contains strings with values such as 11/2 that I want to retrieve as is, but in the Excel sheet I get a date,that is, 11-feb.
I have forced the column format to Text, but it doesn't fix the problem.
What should be done?