Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I am currently using the CopyfromRecordset function to copy data from an
Access database into Excel worksheets. The only problem is that I now have a requirement to read the data directly into an array rather than to a worksheet. I thought I read something on the forum about this a couple of weeks ago, but I cannot find it again, any help would be greatly appreciated. -- Cheers... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() If Not oRS.EOF Then ary = oRS.getrows -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Deke" wrote in message ... I am currently using the CopyfromRecordset function to copy data from an Access database into Excel worksheets. The only problem is that I now have a requirement to read the data directly into an array rather than to a worksheet. I thought I read something on the forum about this a couple of weeks ago, but I cannot find it again, any help would be greatly appreciated. -- Cheers... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Thanks, I works great, but for some reason it puts into a multi-dimensional
array... -- Cheers... "Bob Phillips" wrote: If Not oRS.EOF Then ary = oRS.getrows -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Deke" wrote in message ... I am currently using the CopyfromRecordset function to copy data from an Access database into Excel worksheets. The only problem is that I now have a requirement to read the data directly into an array rather than to a worksheet. I thought I read something on the forum about this a couple of weeks ago, but I cannot find it again, any help would be greatly appreciated. -- Cheers... |
#4
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
That is because the data is multi-dimensional, rows x columns
-- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Deke" wrote in message ... Thanks, I works great, but for some reason it puts into a multi-dimensional array... -- Cheers... "Bob Phillips" wrote: If Not oRS.EOF Then ary = oRS.getrows -- HTH Bob (there's no email, no snail mail, but somewhere should be gmail in my addy) "Deke" wrote in message ... I am currently using the CopyfromRecordset function to copy data from an Access database into Excel worksheets. The only problem is that I now have a requirement to read the data directly into an array rather than to a worksheet. I thought I read something on the forum about this a couple of weeks ago, but I cannot find it again, any help would be greatly appreciated. -- Cheers... |
#5
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Deke wrote:
Thanks, I works great, but for some reason it puts into a multi-dimensional array... If the functions in the freely downloadable file at http://home.pacbell.net/beban are available to your workbook ary = ArrayReshape(ary, 1, ArrayCount(ary)) will convert it to a 1-D array. Alan Beban |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Read range to array | Excel Programming | |||
Excel, read in an array | Setting up and Configuration of Excel | |||
Read a range to an array | Excel Programming | |||
Read comboboxes into array | Excel Programming | |||
Read in Array | Excel Programming |