Hi,
See if this helps. Please modify to meet your specific needs
Sub PasteTranspose()
Dim shTarget As Worksheet
Dim lRow As Long
Dim lrowTarget As Long
Dim i As Long
'create the Summary sheet
ThisWorkbook.Sheets.Add after:=Sheets(Sheets.Count)
On Error GoTo Err1
ActiveSheet.Name = "Summary"
Set shTarget = ActiveSheet
'add the headers
Sheets("Summary").Cells(1, "A").Resize(1, 5).Value = Array("Company", "Address 1", _
"Address 2", "State, County", _
"Telephone")
'count the rows in "Sheet1" or the sheet you have the data initally
lRow = Sheets("Sheet1").Cells(Rows.Count, "A").End(xlUp).Row
'loop through the cells and add the values
With shTarget
For i = 1 To lRow Step 5
'determine whats the last row the data will be going to
lrowTarget = .Cells(Rows.Count, "A").End(xlUp).Row + 1
Sheets("Sheet1").Cells(i, "A").Resize(5, 1).Copy
shTarget.Cells(lrowTarget, "A").PasteSpecial Transpose:=True
Next
End With
Exit Sub
Err1:
Application.DisplayAlerts = False
ActiveSheet.Delete
Application.DisplayAlerts = True
MsgBox "There is a sheet named: ""Summary"" in the workbook. Delete or rename to preoceed", _
vbInformation + vbOKOnly, "Duplicate Sheet"
End Sub
Thanks
Bookmarks