expression .CopyFromRecordset problem

Spoulis19

Board Regular
Joined
Dec 31, 2010
Messages
56
HOW to transfer data from five ms access table fields to an excel worksheet with copy from recordset method

But three access fields to be copied in excel range starting in cell a5, and the other two fields to be copied to excel range g5 and i5.

The problem is that copy from recordset method Copiesthe contents of an ADO or DAO Recordset object onto a worksheet,beginning at the upper-left corner of the specified range and i have to avoid insert columns due to other restrictions. Any ideas?

expression .CopyFromRecordset(Data,MaxRows, MaxColumns)<o:p></o:p>
expression A variablethat represents a Range object.<o:p></o:p>
 

Excel Facts

What do {} around a formula in the formula bar mean?
{Formula} means the formula was entered using Ctrl+Shift+Enter signifying an old-style array formula.
Hi

Thanks for the feedback.

Pleased to have helped solve your problem.

Good luck with your project.
 
Upvote 0

Forum statistics

Threads
1,215,066
Messages
6,122,948
Members
449,095
Latest member
nmaske

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