THE QUESTION:
Given a 1-dimensional array like:
And multiple two-dimension arrays, each in the form:
Is there a short (1-line?) way to copy the contents of RowIdentifiers into ArrayA(1, 1-10). Something like:
BACKGROUND SITUATION: I have a tool that, for reasons I've been unable to determine yet, suddenly started taking ridiculous amounts of time to write values to cells on a worksheet (yes, during code execution screen updating is off, calculation is set to manual, etc).
Anyway, I'm exploring writing all the values to two-dimension arrays and then assigning them to the appropriate ranges on the worksheet in one swoop (MUCH faster). And I need something like this to simplify writing some identical data to all of the two-dimension arrays.
VBAjedi
Given a 1-dimensional array like:
Code:
RowIdentifiers(1 To 10) As String
And multiple two-dimension arrays, each in the form:
Code:
ArrayA(1 To 50000, 1 To 100) As String
Is there a short (1-line?) way to copy the contents of RowIdentifiers into ArrayA(1, 1-10). Something like:
Code:
ArrayA(1, 1:10) = RowIdentifiers
BACKGROUND SITUATION: I have a tool that, for reasons I've been unable to determine yet, suddenly started taking ridiculous amounts of time to write values to cells on a worksheet (yes, during code execution screen updating is off, calculation is set to manual, etc).
Anyway, I'm exploring writing all the values to two-dimension arrays and then assigning them to the appropriate ranges on the worksheet in one swoop (MUCH faster). And I need something like this to simplify writing some identical data to all of the two-dimension arrays.
VBAjedi