Hello, I´m beginning to learn vba, and I just can´t solve this one. If someone can help me...thank you
I have several excel worksheets that approximatly 7336 rows filed with groups of numbers with different column and row length.
The output I need is below. Basically inside each group all rows are aligned.
I have used without success the code below. I just can´t make it go trough all the groups
Thank you
[/CODE]
I have several excel worksheets that approximatly 7336 rows filed with groups of numbers with different column and row length.
The output I need is below. Basically inside each group all rows are aligned.
I have used without success the code below. I just can´t make it go trough all the groups
Thank you
VBA Code:
[CODE=vba]Sub convertMultipleRowsToOneRow()
Set myRange = Application.InputBox("select one range that you want to convert:", "", Type:=8)
Set dRang = Application.InputBox("Select one Cell to place data:", "", Type:=8)
rowNum = myRange.Rows.Count
colNum = myRange.Columns.Count
For i = 1 To rowNum
myRange.Rows(i).Copy dRang
Set dRang = dRang.Offset(0, colNum + 0)
Next
End Sub