post a sample file...
post a sample file...
sample file is attached
Data.txt
Does this help?
assumes original data is on row 2.![]()
Sub mandukes() Range(Cells(2, 1), Cells(2, ActiveSheet.UsedRange.Columns.count)).Copy Cells(3, 1).PasteSpecial Transpose:=True Range(Cells(2, 1), Cells(2, ActiveSheet.UsedRange.Columns.count)).Delete End Sub
Maybe:
Assumes original data is on row 2 of a spreadsheet.![]()
Sub mandukes() Range("A2").Select Selection.TextToColumns Destination:=Range("A2"), DataType:=xlDelimited, _ TextQualifier:=xlDoubleQuote, ConsecutiveDelimiter:=True, Tab:=True, _ Semicolon:=False, Comma:=False, Space:=True, Other:=False, FieldInfo _ :=Array(Array(1, 1), Array(2, 1), Array(3, 1), Array(4, 1), Array(5, 1), Array(6, 1)), _ TrailingMinusNumbers:=True Range(Cells(2, 1), Cells(2, ActiveSheet.UsedRange.Columns.count)).Copy Cells(3, 1).PasteSpecial Transpose:=True Range(Cells(2, 1), Cells(2, ActiveSheet.UsedRange.Columns.count)).Delete End Sub
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks