Function TransposeGetRows(varData) As Variant
Dim lngRow As Long, lngCol As Long
Dim varOut()
ReDim varOut(1 To UBound(varData, 2) + 1, 1 To UBound(varData, 1) + 1)
For lngRow = LBound(varData, 2) To UBound(varData, 2)
For lngCol = LBound(varData, 1) To UBound(varData, 1)
varOut(lngRow + 1, lngCol + 1) = varData(lngCol, lngRow)
Next lngCol
Next lngRow
TransposeGetRows = varOut
End Function