Hi
I am trying to extract the rows between the 2 lines that contains "LINE BREAK - START OF PIVOT TABLE ZONE" for column A:E and G:J.
The extract should be copied into L:O and Q:T.
I tried writing the below but do not seem to work
Sub LINEBREAK2()
Application.ScreenUpdating = False
'to extract the rows between line break and line break 2
With Worksheets("PnL FXOPT Piv Carol").Range("B:B")
Set c = .Find("LINE BREAK - START OF PIVOT TABLE ZONE", LookIn:=xlValues)
Set d = .Find("LINE BREAK 2 - START OF PIVOT TABLE ZONE", LookIn:=xlValues)
ActiveSheet.Range(Cells(c.Row, c.Column), Cells(d.Row, c.Column)).Select
Range.Copy Destination:=("L:O").Paste
End With
Application.ScreenUpdating = True
End Sub
I have attached what i have and expecting per the attached screenshot.
Thanks
I am trying to extract the rows between the 2 lines that contains "LINE BREAK - START OF PIVOT TABLE ZONE" for column A:E and G:J.
The extract should be copied into L:O and Q:T.
I tried writing the below but do not seem to work
Sub LINEBREAK2()
Application.ScreenUpdating = False
'to extract the rows between line break and line break 2
With Worksheets("PnL FXOPT Piv Carol").Range("B:B")
Set c = .Find("LINE BREAK - START OF PIVOT TABLE ZONE", LookIn:=xlValues)
Set d = .Find("LINE BREAK 2 - START OF PIVOT TABLE ZONE", LookIn:=xlValues)
ActiveSheet.Range(Cells(c.Row, c.Column), Cells(d.Row, c.Column)).Select
Range.Copy Destination:=("L:O").Paste
End With
Application.ScreenUpdating = True
End Sub
I have attached what i have and expecting per the attached screenshot.
Thanks