Looks like it cannot find my query tables??? below is an almost identical thread to this issue:
Many searches on the internet proposed Skips solution:
For Each ws In ThisWorkbook.Worksheets
ws.select
For Each qt In ws.QueryTables
qt.Connection = sConnection
Next
Next
It never gets to the qt.Connection line
When I test in the immediate window, I get an error:
Worksheets(1).QueryTables(1).count
I must be missing something very simple. Please advise.
Thanks,
Thoeum
Many searches on the internet proposed Skips solution:
For Each ws In ThisWorkbook.Worksheets
ws.select
For Each qt In ws.QueryTables
qt.Connection = sConnection
Next
Next
It never gets to the qt.Connection line
When I test in the immediate window, I get an error:
Worksheets(1).QueryTables(1).count
I must be missing something very simple. Please advise.
Thanks,
Thoeum