D
Dan_S
Dear all,
I'm trying to use VBA to output the results of a list of Queries to Excel
spreadsheets using the TransferSpreadsheet command.
What I have is a source table with the Query names, and a relevant
department code, so I'd like to use this table to create only the queries
that match a specific department.
In short, I'm creating an Excel Workbook with a number of audits for each
department.
I've tried using multiple ways of passing a value to QueryDefs, but none of
the results work - they always result in errors. To be honest, I'm unsure as
to how the QueryDefs function works, and how to deal with it.
Thanks in advance for your help!
I'm trying to use VBA to output the results of a list of Queries to Excel
spreadsheets using the TransferSpreadsheet command.
What I have is a source table with the Query names, and a relevant
department code, so I'd like to use this table to create only the queries
that match a specific department.
In short, I'm creating an Excel Workbook with a number of audits for each
department.
I've tried using multiple ways of passing a value to QueryDefs, but none of
the results work - they always result in errors. To be honest, I'm unsure as
to how the QueryDefs function works, and how to deal with it.
Thanks in advance for your help!