Good morning folks! Simple question that I suspect doesn't have a simple answer.
How do I TRANSPOSE the values in an array?
I have an array that I needed to ReDim Preserve and it was build up dynamically. I did so in a loop using a Variable for the array size which forced me to place the part of the array that contained the variable on the right of the Variable
Example: ReDim Preserve NewData(1 To 5, 1 To k) As Variant
When placing the data on the new sheet I want the data to be: NewData(1 To k, 1 To 5) TRANSPOSED
Any help would be appreciated.
---------- Post added at 09:57 AM ---------- Previous post was at 09:49 AM ----------
GOT IT!!! For those who may also be wondering...
tansData = Application.WorksheetFunction.Transpose(NewData)
Bookmarks