C
cubhasker
Below is a Sub I have written. I have huge data in Sheet3 with
different forms of names containing "shell". Whenever I encounter
shell in column A of Sheet3 I should write SHELL in column F
Sub NameBusiness()
Dim srchResult As Integer
Dim temp As String
temp = "search(""*shell*"",sheet3!a2,1)"
For i = 2 To 59998
srchResult = ActiveSheet.Evaluate(temp)
If (srchResult = 1) = True Then
Sheet3.Cells(i, 6) = "Exxon Mobil"
End If
Next i
End Sub
different forms of names containing "shell". Whenever I encounter
shell in column A of Sheet3 I should write SHELL in column F
Sub NameBusiness()
Dim srchResult As Integer
Dim temp As String
temp = "search(""*shell*"",sheet3!a2,1)"
For i = 2 To 59998
srchResult = ActiveSheet.Evaluate(temp)
If (srchResult = 1) = True Then
Sheet3.Cells(i, 6) = "Exxon Mobil"
End If
Next i
End Sub