string manipulation

  • Thread starter Thread starter banavas
  • Start date Start date
B

banavas

Dear Friends,

does anyone has any piece of code that returns true is string
contains string B and false otherwise?

Thank you in advance.
 
Take a look at the InStr method in VBA Help. You can return True/False
with:

Dim bAcontainsB As Boolean
bAcontainsB = InStr(strA, strB) > 0
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top