Nelson78
Well-known Member
- Joined
- Sep 11, 2017
- Messages
- 526
- Office Version
- 2007
Hello everybody.
I'm struggling with this job: for each cell in a column, I have to check if the letter "I" is contained.
If yes, clear the entire row.
Now, with the following code something is wrong (all rows are cleared, also if "I" is not contained).
Thank's in advance.
I'm struggling with this job: for each cell in a column, I have to check if the letter "I" is contained.
If yes, clear the entire row.
Now, with the following code something is wrong (all rows are cleared, also if "I" is not contained).
Code:
If InStr(1, cell, “I”) > 0.5 Then cell.EntireRow.Clear
Thank's in advance.