sharky12345
Well-known Member
- Joined
- Aug 5, 2010
- Messages
- 3,404
- Office Version
- 2016
- Platform
- Windows
Morning all,
I need the code please that will search cells G2:G5000 on the worksheet "Letters" and will delete the entire row only if the figure '1' appears in that row, (in column G).
The code must leave intact any rows where the figure is anything other than 1. I will be looking to repeat this code to search for figures running from 1 to 30. The column itself will only have figures ranging from 1 to 30 so it is important that the code doesn't delete '11' or '21' if searching for '1' - does this make sense?
I need the code please that will search cells G2:G5000 on the worksheet "Letters" and will delete the entire row only if the figure '1' appears in that row, (in column G).
The code must leave intact any rows where the figure is anything other than 1. I will be looking to repeat this code to search for figures running from 1 to 30. The column itself will only have figures ranging from 1 to 30 so it is important that the code doesn't delete '11' or '21' if searching for '1' - does this make sense?