I am trying to move the cell value to adjacent cell if the string contains @ character in it. but the following Macro is not working as intended.
Sub Macro1()
Dim MatchString As String
MatchString = "@"
For Counter = 1 To Range("A:A").Count
If (InStr(Range("A" & Counter).Value, Len(MatchString)) = MatchString) Then
Range("A" & Counter).Select
Selection.Cut
Range("B" & Counter).Select
ActiveSheet.Paste
End If
Next Counter
End Sub
Kindly suggest me what I missed in this macro so that my program works well.