There is no VBA associated with links between Excel and Access. All VBA
code will be found either in a general module or class module associated
with the workbook - and there is no VBA code with links established to
Data=>Get External data or using the Pivot table wizard.
Dim qtbl as QueryTable
for each sh in ThisWorkbook.Worksheets
for each qtbl in sh.QueryTables
msgbox qtbl.sql
Next
Next
should show you the select statement. To the best of my knowledge, the
order in the select tables is assigned to the columns sequentially from the
first column.
Regards,
Tom Ogilvy
Ask a Question
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.