My question is similar to this one VBA - Find first and last row containing specific text but I need a little tweak. My Column A values are Delete, Delete end, and -(dash) only and I need to get the first rows where Delete is and last rows where Delete end is.
Rows Column A
1 Delete
2 Delete
3 Delete end
4 -
5 -
6 -
7 -
8 Delete
9 Delete end
Edit: I would like to extract the rows 1 and 3, and 8 and 9, not the range like A1:A3. How should I do this approach?