I have tried searching for an answer to this question and have come up empty.
I am loading two worksheets into arrays - both worksheets contain the same unique ID but the rest of the ID data can be different - I am then checking the unique IDs against each other, and if matched then comparing and updating the sheets using the array first dimension to reference the worksheet rows.
When I am writing back to the sheet, I am currently using the below code:
Range("A" & StRow).Value = copyArr(newLine, 1)
Range("B" & StRow).Value = copyArr(wipLine, 2)
Range("C" & StRow).Value = copyArr(wipLine, 6)
...
Range("AA" & StRow).Value = copyArr(wipLine, 50)
The data in each array is not in the same location in each (i.e. array1 col 10 might be array2 col 43, etc).
Is there a more efficient way of doing this that I am missing? Could I write the array back to another sheet, move it about so the columns line up and then use that to write back a row at a time? Is this even a problem and I should just move on?
Any input is appreciated.
