Hi,
I am not able to refresh the results of the webquery.
Code:
lstrWebAddress = "http://nse-india.com/marketinfo/fo/fomwatchsymbol.jsp?key="
lstrStockcode = "ITC"
lstrWebAddress = lstrWebAddress & lstrStockcode
ActiveWorkbook.Worksheets.Add
With ActiveSheet.QueryTables.Add(Connection:= _
lstrWebAddress, _
Destination:=Range("A2"))
.Name = "ITC"
.FieldNames = True
.RowNumbers = False
.FillAdjacentFormulas = False
.PreserveFormatting = True
.RefreshOnFileOpen = False
.BackgroundQuery = True
.RefreshStyle = xlInsertDeleteCells
.SavePassword = False
.SaveData = True
.AdjustColumnWidth = False
.RefreshPeriod = 0
.WebSelectionType = xlAllTables
.WebFormatting = xlWebFormattingNone
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.Refresh BackgroundQuery:=False
End With
Once the web query downloads the data, successive "refresh" data thru right clicks does not refresh the actual data.
If I go to the website thru IE and then perform the refresh operation, only then the data thru web query is refreshed.
Is there something related to cache / temp IE files etc?
How can I circumvent it?
Cheers,
Avinash
Bookmarks