For example:
![]()
Sub pcbpinoy() Dim s$ s = "CD_HJ_TY_AB" If InStr(s, "AB") Then MsgBox "Found AB" If InStr(s, "AB") And InStr(s, "CD") Then MsgBox "Found AB and CD" End Sub
For example:
![]()
Sub pcbpinoy() Dim s$ s = "CD_HJ_TY_AB" If InStr(s, "AB") Then MsgBox "Found AB" If InStr(s, "AB") And InStr(s, "CD") Then MsgBox "Found AB and CD" End Sub
thanks a lot.. i was doing
s = "CD_HJ_TY_AB"
If (InStr(s, "AB") =1) And (InStr(s, "CD")=1)
There are currently 1 users browsing this thread. (0 members and 1 guests)
Bookmarks