Good Morning
I currently use web queries to pull in data for a project I am running.
I currently have one workbook with about 50 tabs, 1 query per tab. This keeps them nice and organised and easy to manage.
However, last week the web address for these queries changed slightly and now they don't work.
What I would like is to understand the VBA code to automatically change the addresses on each tab.
If I was to edit the address manually, I recorded the macro :
With Selection.QueryTable
.Connection = _
"URL;http://xxxxxx.com.DataTable.Monday"
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "4"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
All the URL addresses have changed there name from Monday to Tuesday.
What code would I need to cycle through the tabs changing part of the URL address from Monday to Tuesday?
Many Thanks for your help !
Cheers
Mulderman
I currently use web queries to pull in data for a project I am running.
I currently have one workbook with about 50 tabs, 1 query per tab. This keeps them nice and organised and easy to manage.
However, last week the web address for these queries changed slightly and now they don't work.
What I would like is to understand the VBA code to automatically change the addresses on each tab.
If I was to edit the address manually, I recorded the macro :
With Selection.QueryTable
.Connection = _
"URL;http://xxxxxx.com.DataTable.Monday"
.WebSelectionType = xlSpecifiedTables
.WebFormatting = xlWebFormattingNone
.WebTables = "4"
.WebPreFormattedTextToColumns = True
.WebConsecutiveDelimitersAsOne = True
.WebSingleBlockTextImport = False
.WebDisableDateRecognition = False
.WebDisableRedirections = False
.Refresh BackgroundQuery:=False
End With
All the URL addresses have changed there name from Monday to Tuesday.
What code would I need to cycle through the tabs changing part of the URL address from Monday to Tuesday?
Many Thanks for your help !
Cheers
Mulderman