Hi I am trying to use a code to clear cells if their value is the same as the P1 cell. The if part doesn't seem to work and I can not find what is wrong.
I dont want to use the find and replace option in Excel.
Range("D1").Select
Do Until Range("D50").Select
If ActiveCell.Value = ("P1") Then
ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.Offset(1, 0).Select
End If
Loop
Thanks
Frank
I dont want to use the find and replace option in Excel.
Range("D1").Select
Do Until Range("D50").Select
If ActiveCell.Value = ("P1") Then
ActiveCell.Value = ""
ActiveCell.Offset(1, 0).Select
Else
ActiveCell.Offset(1, 0).Select
End If
Loop
Thanks
Frank