Moved an excel spreadsheet which scrapes data off of a website from a PC with excel 2013 to new PC with excel 2016. Error occurs at " .Refresh BackgroundQuery:=False" (code snip below)
I used the help in excel 2016 and it seems to referrence this as .Refresh ([BackgroundQuery]) but no combination of spacing or other adjustment creates a functional or executable script.
It is my assumption that either something changed between versions or i need to enable some feature in excel. Any help would be appreciated.
I used the help in excel 2016 and it seems to referrence this as .Refresh ([BackgroundQuery]) but no combination of spacing or other adjustment creates a functional or executable script.
It is my assumption that either something changed between versions or i need to enable some feature in excel. Any help would be appreciated.
Code:
Dim objWeb As QueryTable
With objWeb
.WebSelectionType = xlSpecifiedTables
.WebTables = sWebTable
.Refresh BackgroundQuery:=False
.SaveData = True
End With