M
MT DOJ Help Desk
I have the following in a macro.
InStr(1, cbLocate, "NIC/", vbTextCompare)
The problem is that sometimes the NIC/ tag appears twice in a record, and
the first occurance never follows a paragraph mark, and is always followed
by unusable data. However, the second tag is always preceded by a paragraph
mark, and is followed by good data. When the NIC/ tag appears only once in
the data, it is also always preceded by a paragraph mark and followed by
good data.
So what I need to do is make the above command find ONLY the NIC/ tag that
is preceded by a paragraph mark. Alternatively, I could make it pick up the
first occurance of the NIC/ tag when there is only one, and ignore it when
there are two in the record. Can anyone help me out with either of these
two possible solutions?
--Tom
InStr(1, cbLocate, "NIC/", vbTextCompare)
The problem is that sometimes the NIC/ tag appears twice in a record, and
the first occurance never follows a paragraph mark, and is always followed
by unusable data. However, the second tag is always preceded by a paragraph
mark, and is followed by good data. When the NIC/ tag appears only once in
the data, it is also always preceded by a paragraph mark and followed by
good data.
So what I need to do is make the above command find ONLY the NIC/ tag that
is preceded by a paragraph mark. Alternatively, I could make it pick up the
first occurance of the NIC/ tag when there is only one, and ignore it when
there are two in the record. Can anyone help me out with either of these
two possible solutions?
--Tom