Hi the code below does exactly what i want it to do except it always skips the third row for some reason.
VBA Code:
Private Sub CommandButton1_Click()
Dim c As Range
Dim LastRow As Long
LastRow = ActiveSheet.Cells(Rows.Count, 1).End(xlUp).Row
For Each c In ActiveSheet.Range("A1", "A" & LastRow)
If c.Value <> "" Then
c.Offset(0, 0).Select
Selection.Resize(Selection.Rows.Count, Selection.Columns.Count + 14).Cut _
Destination:=Worksheets("Pivot Data").Cells(Rows.Count, 1).End(xlUp).Offset(1, 0)
End If
Next c
End Sub