Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Word / Programming / October 2005

Tip: Looking for answers? Try searching our database.

"Do while not"

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Roger Marrs - 27 Oct 2005 17:45 GMT
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
Doug Robbins - Word MVP - 27 Oct 2005 19:39 GMT
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
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.