Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using ADO to CopyFromRecordset to another sheet
I'm using ADO to retrieve records from a database. However, the records are
automatically being stored in sheet1. How do I specify which sheet I want the records to be stored in. I am using the following line of code to copy from the recordset... Range("A1").CopyFromRecordset rst Thank you inadvance! |
#2
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using ADO to CopyFromRecordset to another sheet
Worksheets("Sheet2").Range("A1").CopyFromRecordset oRS
-- HTH RP (remove nothere from the email address if mailing direct) "JJ" wrote in message ... I'm using ADO to retrieve records from a database. However, the records are automatically being stored in sheet1. How do I specify which sheet I want the records to be stored in. I am using the following line of code to copy from the recordset... Range("A1").CopyFromRecordset rst Thank you inadvance! |
#3
Posted to microsoft.public.excel.programming
|
|||
|
|||
Using ADO to CopyFromRecordset to another sheet
I appreciate it, thanks!
"Bob Phillips" wrote: Worksheets("Sheet2").Range("A1").CopyFromRecordset oRS -- HTH RP (remove nothere from the email address if mailing direct) "JJ" wrote in message ... I'm using ADO to retrieve records from a database. However, the records are automatically being stored in sheet1. How do I specify which sheet I want the records to be stored in. I am using the following line of code to copy from the recordset... Range("A1").CopyFromRecordset rst Thank you inadvance! |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
CopyFromRecordset method | Excel Programming | |||
CopyFromRecordset does nothing | Excel Programming | |||
ADO & CopyFromRecordset performance | Excel Programming | |||
CopyFromRecordset does nothing | Excel Programming | |||
Copyfromrecordset Bug ? | Excel Programming |