How would I modify this snippet
so that the condition would be true even if only part of the cell contained the string "labo"? So, for example, I would like the condition to return true if the cell contained the words "TWO PLACE HOLDERLABO" . The "labo" may exist in different positions within the cell so variations on:
would not work, so far as I am aware.
Code:
...
If UCase(.Range("A1").Value) = "labo" Then
...
so that the condition would be true even if only part of the cell contained the string "labo"? So, for example, I would like the condition to return true if the cell contained the words "TWO PLACE HOLDERLABO" . The "labo" may exist in different positions within the cell so variations on:
Code:
If UCase(Left(.Range("A1"), 4)) = "labo"
would not work, so far as I am aware.