Sub Replace()
Dim old As Variant
old = Application.InputBox("Enter Value of Range-B2 Or Select")
Set ne = Range("C2")
If IsNumeric(old) Then
old = Int(Val(old))
Else
old = old
End If
For Each cell In ActiveSheet.UsedRange
If cell.Value = old Then cell.Value = ne.Value
Next
End Sub
can you pls provide data some and where are using this code bcoz this same code is working in mine file after i tried then given to youit is nt working...
it gives the pop-up to enter the value ,, but nthing happen after that.![]()
its working.. i was trying it wrong, i was nt entreing the value i put in B2
i can u make it in the way.. when i can macro, it doest ask for input.. it change whatover B2 to C2...
i mean no inputbox