Is there a way to list ALL existing queries within an Excel workbook?
D Don Guillett Apr 18, 2006 #2 One way for all names on a new sheet>insert>name>paste>list or Sub QueryTableList() Dim q As QueryTable For Each sh In Worksheets i = 3 For Each q In sh.QueryTables 'MsgBox q.Name Cells(i, 1) = q.Name i = i + 1 Next q Next sh End Sub
One way for all names on a new sheet>insert>name>paste>list or Sub QueryTableList() Dim q As QueryTable For Each sh In Worksheets i = 3 For Each q In sh.QueryTables 'MsgBox q.Name Cells(i, 1) = q.Name i = i + 1 Next q Next sh End Sub