Hi..
Private Sub CommandButton1_Click()
Dim myArea As Range, myAreas As Areas
With Sheets("Sheet1")
With .Range("B1", .Range("B" & Rows.Count).End(xlUp))
On Error Resume Next
Set myAreas = .SpecialCells(2).Areas
On Error GoTo 0
End With
For Each myArea In myAreas
.Range("D" & .Range("D" & Rows.Count).End(xlUp).Row).Offset(1).Resize(1, myArea.Count).Value = Application.Transpose(myArea)
Next myArea
End With
End Sub
It would be great if there was a way to transpose the rows to a specific column if the row content is a Company Name, addreess, phone number.
That would be nice.. not sure how you would determine (by code), what goes where..
Bookmarks