I have a list of items which are scattered, I need them all in one column, the items scattered can be brought into one column withing the blank cells.
This is what i need. some times there is 2 values to transpose, sometimes 5 or sometimes no need, So i dont know how to achieve it.
This is the code i found for transpose but here range is fixed, I need to achive the above in one click, So someone please help me
This is what i need. some times there is 2 values to transpose, sometimes 5 or sometimes no need, So i dont know how to achieve it.
VBA Code:
Sub Transpose_Example1()
Range("D1:H2").Value = WorksheetFunction.Transpose(Range("A1:D5"))
End Sub
This is the code i found for transpose but here range is fixed, I need to achive the above in one click, So someone please help me