L
Larry
What am I doing wrong here? I want to find out if a semicolon, comma or
colon is in the
selection, but instead, I get a "Yes" no matter what the selection
consists of.
If InStr(1, Selection.Text, ";:,", 1) = Yes Then MsgBox "yes"
Also, if I have only one character inside the quote marks in the InStr
statement, say a comma, nothing happens even if the selection includes
that character.
This does work, but it will only check one character at a time. I
wanted to check for any one of several characters at a time.
If InStr(1, r.Text, ";", vbBinaryCompare) > 0 then msgbox "Yes"
Thanks.
Larry
colon is in the
selection, but instead, I get a "Yes" no matter what the selection
consists of.
If InStr(1, Selection.Text, ";:,", 1) = Yes Then MsgBox "yes"
Also, if I have only one character inside the quote marks in the InStr
statement, say a comma, nothing happens even if the selection includes
that character.
This does work, but it will only check one character at a time. I
wanted to check for any one of several characters at a time.
If InStr(1, r.Text, ";", vbBinaryCompare) > 0 then msgbox "Yes"
Thanks.
Larry