I am trying to figure out how to modify a routine that uses Do While Not.
The issue I'm dealing with is that Do While Not checks the validity of the
value contained in a bookmark against a mask. However, I need to accomodate
more than one mask.
For example:
Do While Not (CaseNumber Like "####-[A-Z][A-Z]-######-*")
OR
Do While Not (CaseNumber Like "####-[A-Z][A-Z]-######-A")
The solution is probably very simple, and I'm trying make it too difficult.
Roger
If it is really the content of a bookmark that you are testing against, as a
bookmark can only appear once in a document, it seems to me that and
If...Then...Else If...Then...End If construction would be more appropriate.

Signature
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP
>I am trying to figure out how to modify a routine that uses Do While Not.
> The issue I'm dealing with is that Do While Not checks the validity of the
[quoted text clipped - 11 lines]
>
> Roger
Roger Marrs - 27 Oct 2005 21:10 GMT
Thanks Doug. It really is a bookmark that I'm testing against and I think
your suggested solution will work. I was trying to figure out an
If...Then.... Else in conjunction with the Do While Not... and was getting
nowhere.
Roger
> If it is really the content of a bookmark that you are testing against, as a
> bookmark can only appear once in a document, it seems to me that and
[quoted text clipped - 15 lines]
> >
> > Roger