S
StephCA
Hi: Word97/2003 VBA
I need to see if there are two left brackets " [ " in selected text. Can I
do this without using Find -- just return the count of left brackets in the
selection? Can someone please give me code or a starting point? TIA.
More info:
I've got code to find and select bracketed text: [all this gets selected,
including the brackets]
Problem = Some text may be missing the right bracket: [this needs a right
bracket. [Here's text with proper brackets.].
In above case, everything from the FIRST "[" through the "]" gets selected
and it'll contain two left brackets. I want to look in the selection and find
out if it has two left brackets--(in which case I have an error).
Thanks much. Stephanie
I need to see if there are two left brackets " [ " in selected text. Can I
do this without using Find -- just return the count of left brackets in the
selection? Can someone please give me code or a starting point? TIA.
More info:
I've got code to find and select bracketed text: [all this gets selected,
including the brackets]
Problem = Some text may be missing the right bracket: [this needs a right
bracket. [Here's text with proper brackets.].
In above case, everything from the FIRST "[" through the "]" gets selected
and it'll contain two left brackets. I want to look in the selection and find
out if it has two left brackets--(in which case I have an error).
Thanks much. Stephanie