H
hutteto
I'm using the following query to loop through each embedded ODBC query
in each worksheet in the workbook.
Dim TargetFile As Workbook
Dim ws As Worksheet
For Each ws In TargetFile.Worksheets
For Each qt In ws.QueryTables
qt.Connection.name
Next qt
Next ws
I'd like to know where the query is embedded (cell address location of
the query).
How do I do this?
Thanks
in each worksheet in the workbook.
Dim TargetFile As Workbook
Dim ws As Worksheet
For Each ws In TargetFile.Worksheets
For Each qt In ws.QueryTables
qt.Connection.name
Next qt
Next ws
I'd like to know where the query is embedded (cell address location of
the query).
How do I do this?
Thanks