Hello
In the following code, I would like to put the Row number of the first line with Data in a variable. (or be able to start my selection from the first line with Data in column A) Right now, my script works well, only when the first line with Data, is Line 2.
Thanks
In the following code, I would like to put the Row number of the first line with Data in a variable. (or be able to start my selection from the first line with Data in column A) Right now, my script works well, only when the first line with Data, is Line 2.
VBA Code:
ActiveSheet.Range("A:A").AutoFilter Field:=5, Criteria1:="JD"
If IsEmpty(Range("A2").Value) = False Then
Rows("2:2").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
End If
Thanks