Macro question

cornishteeth

Board Regular
Joined
Dec 6, 2002
Messages
117
I have created a macro that transfers my queries to a spreadsheet. I have a total of 12 queries based on date inputs and utilize the TransferSpreadsheet option. This works just fine, but I would now like to refine the output. When I open the Excel file it has created 12 different spreadsheets. The data contained is quite minimal (usually 1 to 10 rows by 2 columns.) How can I put all the data on one single spreadsheet and not 12? Thanks in advance for your help.

Cornishteeth
 

Excel Facts

Easy bullets in Excel
If you have a numeric keypad, press Alt+7 on numeric keypad to type a bullet in Excel.
Look under the Help Files for the TransferSpreadsheet method. The code that you would customize is the exact same code that the Macro writes for you, only you have more control. You can specify Worksheet and Range properties here.
 
Upvote 0

Forum statistics

Threads
1,221,528
Messages
6,160,343
Members
451,638
Latest member
MyFlower

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top