UnsolvedCoding
Technical User
I am having difficulty trying to save information into a multi-dimensional array. In a normal array I would use ReDim Preserve but that doesn't work with a multi-dimensional array, it keeps saying array is already dimensioned.
What I have is a sheet that has 5 columns and hundreds of rows. I am trying to get the info put into one array so that I can simply say that if myarray(3,1) = the cell value then range("G" & i).value = myarray(3,1) or whatever the value would be.
I can't get the array to function dynamically and even when I limit it to 2 dimensions it doesn't want to redim preserve. I don't want to manually code each portion of the array.
So what I am doing is taking the 5 columns, the first 4 of which are client specific and column 5 which is a contact name, transfer it to a new sheet and then if one of the first 4 match put in the contact name in the appropriate cell.
Any ideas on how to fix this or work around it?
What I have is a sheet that has 5 columns and hundreds of rows. I am trying to get the info put into one array so that I can simply say that if myarray(3,1) = the cell value then range("G" & i).value = myarray(3,1) or whatever the value would be.
I can't get the array to function dynamically and even when I limit it to 2 dimensions it doesn't want to redim preserve. I don't want to manually code each portion of the array.
So what I am doing is taking the 5 columns, the first 4 of which are client specific and column 5 which is a contact name, transfer it to a new sheet and then if one of the first 4 match put in the contact name in the appropriate cell.
Any ideas on how to fix this or work around it?