Hi I'm working on a Macro to find the word Flex in a range of strings, but I need to set another value creating a column next to it. But I can't figure out the way to iterate through all the cells up to the lastrow and for each value found set another one in the next cell and column.
Sub Method2()
Dim rng1 As Range
Dim strSearch As String
strSearch = "Flex"
Set rng1 = Range("A:A").Find(strSearch, , xlValues, xlPart)
If Not rng1 Is Nothing Then
MsgBox "Find has matched " & strSearch & vbNewLine & "corresponding cell is " & rng1.Offset(0, 1)
Else
MsgBox strSearch & " not found"
End If
End Sub