Hello all:
I need your help with this macro. In column R, I have filtered the data for "NO", then I want to copy all the rows and paste then into another sheet. I am having a problem with the copy part of the macro. I want to copy anything apart from the first row of my data since that is the header, but I don't want to specify the row #s as my macro recorder did since the data will change from time to time. I just want to copy from the row after the header to the last row.
Sheets5.Select
Range("R1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=18, Criteria1:="No"
Rows("236:1160").Select
Selection.Copy
I know with the code below, I can get the last row:
Range("b1").Select
Selection.End(xlDown).Select
ro$ = ActiveCell.Row
Thanks for helping.
SharonMee
I need your help with this macro. In column R, I have filtered the data for "NO", then I want to copy all the rows and paste then into another sheet. I am having a problem with the copy part of the macro. I want to copy anything apart from the first row of my data since that is the header, but I don't want to specify the row #s as my macro recorder did since the data will change from time to time. I just want to copy from the row after the header to the last row.
Sheets5.Select
Range("R1").Select
Selection.AutoFilter
Selection.AutoFilter Field:=18, Criteria1:="No"
Rows("236:1160").Select
Selection.Copy
I know with the code below, I can get the last row:
Range("b1").Select
Selection.End(xlDown).Select
ro$ = ActiveCell.Row
Thanks for helping.
SharonMee