I have been using separate queries to output data to Excel (see code below for example), and this works fine. However, there is a need to slice the data by filters, which would mean writing hundreds of individual queries. I am hoping there is a way to write one parameter query and use VBA to...