Hi
I am new to this forum and new to Macro
I am attaching a file where horizontal row should be converted into Verticle Row
Can you pls help me with it
thanks a lot in advance
Hi
I am new to this forum and new to Macro
I am attaching a file where horizontal row should be converted into Verticle Row
Can you pls help me with it
thanks a lot in advance
Hello,
By hand :
1) select range A1:AX3 and copy
2) select A1 in new worksheet and menu Edition/Pastespecial checkbox Transpose
By macro :
Copy this code in a standard module
Best regards.![]()
Sub TransposeSelection() Dim S As Worksheet On Error GoTo Erreur Selection.Copy Set S = Sheets.Add S.[a1].PasteSpecial Paste:=xlPasteAll, Transpose:=True S.Cells.Columns.EntireColumn.AutoFit Application.CutCopyMode = False Erreur: If Err <> 0 Then MsgBox "Error " & Err.Number & vbCrLf & Err.Description End Sub
PMO
Patrick Morange
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks