Create a macro that exports your first query to Excel (using the TransferSpreadsheet command). Then, from the Macros ribbon, select "Convert Macros to Visual Basic". This will give you the VBA code equivalent of that macro. You can use that as the "building blocks" for your VBA code.
If you post that code here, we can help you write the loop you need to loop through all 20 queries and export them all.