Good Afternoon,
I have a simple .xlsm book into which users can paste a list of file numbers and when run, the macro reads each file number, one at a time, and runs a query against a SQL DB and then pastes the results back into the book.
Is there a way to read all of the file numbers (sometimes in the tens of thousands) all at once, create a single record set and paste that record set back into the book in one pass?
I understand how to paste the query results into the sheet, but I can't find out how to run the query against all the file numbers at one time.
Thanks for any suggestions,
Brad
I have a simple .xlsm book into which users can paste a list of file numbers and when run, the macro reads each file number, one at a time, and runs a query against a SQL DB and then pastes the results back into the book.
Is there a way to read all of the file numbers (sometimes in the tens of thousands) all at once, create a single record set and paste that record set back into the book in one pass?
I understand how to paste the query results into the sheet, but I can't find out how to run the query against all the file numbers at one time.
Thanks for any suggestions,
Brad