Programmer's Corner Forum Index
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Programmer's Corner - Forums


Excel VBA Multidimensional arrays

 
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Archive
Author Message
JWM
Guest





PostPosted: Mon Jan 10, 2005 11:21 am    Post subject: Excel VBA Multidimensional arrays Reply with quote

I am trying to determine how to reference an entire "row" or "column" of an array without looping through the entire thing in Excell VBA. In particular I hava a 3 dimensional array, with each dimension being roughly equivalent to the following:
1: Sheet number
2: Row Number
3: Column number

I would like to be able to copy all of the data from Sheet 1 of the array into a worksheet or another array. So far I have been unable to figure out if it is possible to refer to an entire row, column, sheet, etc. without looping. I imagine it looking something like:
newarray = oldarray(1,*,*)
or
newarray = oldarray(1, 1 to 5, 1 to 10)

Does anyone know if this is possible and how it might be done? Thanks.
Back to top
Display posts from previous:   
Post new topic   Reply to topic    Programmer's Corner Forum Index -> Archive All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2002 phpBB Group