Hi Team,
I have a attached problem where i have to find the test in a string and based on it i have to execute if statement. i have done in excel but can not execute in vba.
please do let me what is wrong with the code. attached is the file for your reference.
Sub test()
Dim I As Integer
a = Sheets(1).Range("A" & Rows.Count).End(xlUp).Row
For p = 1 To a Step 1
application.WorksheetFunction.if.ISNUMBER(SEARCH("C",cells(p,3).value)= "TRUE" Then
MsgBox "correct"
End If
Next
End Sub
Bookmarks