Home |
Search |
Today's Posts |
#8
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
#1
for a non-contiguous range, you would need to loop through the cells and add the values one at a time to each element of the range. #2 A variant variable can be passed an array. So I believe you can assign a record to a variant and it will be passed as an array. this article shows how to do it with DAO http://support.microsoft.com/default...;en-us;q149254 rs.MoveLast x = rs.RecordCount rs.MoveFirst 'Return the records to an array variable. varrecords = rs.GetRows(x) I assume you could do something similar with ADO. -- Regards, Tom Ogilvy "Brian" wrote in message ... Thanks for the help and explanation. Two more questions to conclude this topic: 1) Is there a way to make it so that you could do this fill this array from a select **non-contiguous** range? It appears the transpose function only works on a contiguos range. 2) How would I go about using the same type of result for an access query table or query? Thanks for all of your help - it is truly appreciated. *** Sent via Devdex http://www.devdex.com *** Don't just participate in USENET...get rewarded for it! |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can I create a dummy variable in Excel? | Excel Discussion (Misc queries) | |||
Using COUNTA for a variable array | Excel Worksheet Functions | |||
create a "variable array?" to report data | Excel Discussion (Misc queries) | |||
create a multivariable regression in excel without using array | Excel Worksheet Functions | |||
Problem trying to us a range variable as an array variable | Excel Programming |