Re: Problem with code for Clearing Content in Column Using User Input
CountA only counts non-blank cells, so if there are blanks in that column the loop won't go all the way to the bottom. That may not be an issue in this case, but try this and see:
Private Sub CommandButton1_Click()
' This will delete specific value in column
Dim i As Integer
Dim ColCount As Integer
Dim DelValue As Variant
DelValue = InputBox("Value to Delete?")
ColCount = Range("B" & Rows.Count).End(xlUp).Row
For i = 1 To ColCount
If Cells(i, 2).Value = DelValue Then Cells(i, 2).ClearContents
Next i
End Sub
Display More
If that don't work, post your workbook and someone might see something else causing your troubles.