If you have a variable JobTitle having "busines manager"
How do I code VB to check that Variable jobTitle contains the word 'Manager'
Note: This variable always has 'manager' as the last word in the string
Check out the InStr Function. Or, if it's always at the end you could use the Right Function. See Help for details of both.
Enjoy,
Tony
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at [url=http://www.vbaexpress.
-------------------------------------------------------------------------------------------- We want to help you; help us to do it by reading this: Before you ask a question.
Excel VBA Training and more Help at VBAExpress[
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.