Hello All:
I tried the below code but if there's any better code I would appreciate for your help:
Sub SelectCertainRows_C/P()
Dim ws1 As Worksheet, ws2 As Worksheet
Set ws1 = Worksheets("Sheet1")
Set ws2 = Worksheets("Sheet2")
Dim Lr1 As Long, Lr2 As Long
Lr1 = ws1.Range("A" & Range("A" & Rows.Count).End(xlUp).Row)
Lr2 = ws2.Range("A" & Range("A" & Rows.Count).End(xlUp).Row)
Do Until ws1.Range("A2").Value = ""
ws1.Range("A1:P1").Copy Destination:=ws2.Range("A1") 'Header
ws1.Range("A2:P3").Copy Destination:=ws2.Range("A2")
ws1.Range("A2:P3").Delete Shift:=xlUp
ws2.Activate
Call Macro: SaveWSAsNewWB
ws1.Activate
Loop
End Sub
Regards,
tt3
Bookmarks