Macro to find and replace with criteria
Try this
Sub test()
Range("C1").Activate
Do Until IsEmpty(ActiveCell)
If ActiveCell.Value < 17 Then
ActiveCell.Value = 1
ActiveCell.Offset(1,0).Activate
Else ActiveCell.Offset(1,0).Activate
End If
Loop
End Sub
"basic" wrote:
I am trying to get a macro to check column C which is a list of numbers and
letters. If the number is less then 17 then change it to 1.
Example:
Original C Changed to
05 01
wt wt
63 63
16 01
12 01
33 33
Thank You,
Tom
|