I am trying to code something up in VB that will look at a cell and find the initials "AV_" and a number (which changes as the loop progresses). for example, the cells looks something like this:
Cell J1: AV_110
blah blah blah blah
cell J2: AV_10
more words here
Each cell has at least 2 lines of text but the first line is always the thing that I am trying to match. I don't want to break it out separately from the cell.
The number that it is matching is looping though (the variable name I gave it is "unqid").
I have the code looking at the cell and trying to match "AV_" & unqid but the problem is that it is coming up with false positives. For example, AV_110 is wrongly being identified as AV_1. I have tried a few ways to doing this, but unfortunately none of them are working. Any ideas?
Thanks
Cell J1: AV_110
blah blah blah blah
cell J2: AV_10
more words here
Each cell has at least 2 lines of text but the first line is always the thing that I am trying to match. I don't want to break it out separately from the cell.
The number that it is matching is looping though (the variable name I gave it is "unqid").
I have the code looking at the cell and trying to match "AV_" & unqid but the problem is that it is coming up with false positives. For example, AV_110 is wrongly being identified as AV_1. I have tried a few ways to doing this, but unfortunately none of them are working. Any ideas?
Thanks