Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
Hi,
I'm new to arrays. I have attempted to create a 2D array for the following data in my sheet. ("Joe" is in cell C3) Name From To Joe A E Pritesh F Q Richard R Z I have the following, but after it tries to ReDim for the second time, I get the error "Subscript out of range" I'm not sure what I'm doing wrong. Here's my code; For i = 3 To Range("C65536").End(xlUp).Row ReDim Preserve Split(1 To i - 2, 1 To 3) Split(i - 2, 1) = Cells(i, 3) Split(i - 2, 2) = Cells(i, 4) Split(i - 2, 3) = Cells(i, 5) Next i Am I making an obvious mistake? Cheers Tony |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
VBA syntax help: ReDim Preserve an array | Excel Discussion (Misc queries) | |||
Redim Preserve form a userform? | Excel Programming | |||
redim preserve the second dimension in a two-dim array | Excel Programming | |||
redim preserve | Excel Programming | |||
Redim Preserve doesn't work | Excel Programming |