Using VBA, I need to keep adding new values to a named range, "rng_SplitWords_Word". My new data is collected in VBA into a 2D array, "DmpAllArr".
Currently, when I run my macro, the named range cells get overwritten with the new values of the array. This is the code:
DmpAllArr = Application.WorksheetFunction.Transpose(DmpAllArr)
Range("rng_SplitWords_Word").Resize(UBound(DmpAllArr, 1)).Value = DmpAllArr
My goal is not to overwrite the named range values, but rather to append the array values to the existing named range. Though I have a few ideas of how to accomplish this technically, I cannot figure out how to implement them using VBA. They are as follows:
Save the existing data from "rng_SplitWords_Word" into a variant; use "ReDim Preserve" to resize DmpAllArr, and append the variant to DmpAllArr. Then clear "rng_SplitWords_Word" of all data and write DmpAllArr to it.
Somehow, append DmpAllArr to the end of "rng_SplitWords_Word"
Since "Append," "concatenate," and "join" don't work on 2D arrays, I don't know how to proceed.
I tried using .End(xlUp) to write the array to the row after the last of "rng_SplitWords_Word" but that didn't work.
Any suggestions?