Hi all,
I just want to replace all values in Column B as "Completed" which does not contains "No".
Please assist me.
Hi all,
I just want to replace all values in Column B as "Completed" which does not contains "No".
Please assist me.
Try this code:
PHP Code:
Sub sample3()
Worksheets("Sheet1").Activate
Dim i As Long
Dim lr As Long
lr = Range("A" & Rows.Count).End(xlUp).Row
For i = lr To 2 Step -1
If Range("B" & i).Value <> "No" Then Range("B" & i).Value = "Completed"
Next i
End Sub
Sorry for inconvenience. Posted in a wrong forum. Please ignore it.
The admin will move it, don't worry
Hi Phuocam,
Thank you so much for your help.
You're welcome! Thanks for the rep points.
Another option, if your interested.Please Login or Register to view this content.
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks