Hi,
Iam trying to do a replace function but it is not working. my vba code is below
can you please tell wat went on wrong
Iam trying to do a replace function but it is not working. my vba code is below
Code:
Sub m()
Dim originaltext As String
Dim correctedtext As String
originaltext = Range("A2").Value
correctedtext = Replace(originaltext, "david", "safar")
Range("A5").Value = correctedtext
End Sub
can you please tell wat went on wrong