access data export to excel

savvas21

New Member
Joined
Jun 15, 2015
Messages
1
Hello everyone! I want to export ms access data to excel with macro! But i want them to exported to an existing excel file and in specific cells! Could you help me with that? Thx a lot!
 

Excel Facts

How can you turn a range sideways?
Copy the range. Select a blank cell. Right-click, Paste Special, then choose Transpose.
you cant export to specific cells, but in XL you can import via 'copy from recordset' to specific cells.
 
Upvote 0
You want to export to an existing file starting at a specific cell? Or are the target cells named? Or is there a pattern of cells (every nth column)? Your requirement is not stated specifically enough for me, I'm afraid. I consider the first option to be fairly easy, the second less so and the 3rd the hardest. As ranman256 suggests, you might want to go at it the other way. If not, a basic description of the process would be to open the workbook, create a recordset from the source query or table and loop through it, writing to the spreadsheet as you go, then saving and/or closing the workbook.
 
Upvote 0

Forum statistics

Threads
1,213,536
Messages
6,114,208
Members
448,554
Latest member
Gleisner2

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