🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: bit.mailserv.word-pc
Article #14047

Word Basic problem....

#14047
From: dennis1
Date: Mon, 29 Mar 1993 09:05
28 lines
2131 bytes
I have started to do quite a bit of programming using Word Basic and have so
far managed to find a solution to most of my problems except one! This is to
down with stopping at the end of a document. e.g. In a macro that scans through
a document for certain codes, deletes the codes and underlines the text between
them. When the search finds the last match I get the message-box telling me
that Word has reached the end of the document and do I want it to start at
the begining! How can I stop this so that my macro returns to the sub MAIN for
further macros! In the above example I use:
			While CmpBookMarks("\sel", "\endofdoc")
			EditFind.....etc....
			If Not EditFindFound() Then Goto bye (to escape out)
			etc....
			etc...
			Wend

			bye:
			End Sub
Anyone got any ideas??

Dennis

+---------------------------------------------------------------------------+
|/\/\/\/\/\/\/\/|               Dennis Hartley              |\/\/\/\/\/\/\/\|
|  Telephone:   | Languages Centre, University of Liverpool |     Fax:      |
| 051 794 2756  |      P.O. Box 147, Liverpool L69 3BX      | 051-794-2748  |
|\/\/\/\/\/\/\/\|          dennis1@.liverpool.ac.uk         |/\/\/\/\/\/\/\/|
+---------------------------------------------------------------------------+
Technical Details
Message-ID: <21225.9303290905@uxb.liv.ac.uk>
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!auvm!UXB.LIVERPOOL.AC.UK!DENNIS1

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 106cba,b407929aadc5ba79,start
X-Google-Attributes: gid106cba,public
X-Google-ArrivalTime: 1993-03-29 09:33:01 PST
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU
Path: arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!auvm!UXB.LIVERPOOL.AC.UK!DENNIS1
Return-Path: <@AUVM.AMERICAN.EDU:rmeyer@UFOBI2.UNI-FORST.GWDG.DE>
X-ListName: WORD-PC unmoderated list <WORD-PC@ufobi1.uni-forst.gwdg.de>
Warnings-To: <>
Errors-To: rmeyer@ufobi2.uni-forst.gwdg.de
Sender: rmeyer@ufobi2.uni-forst.gwdg.de
From: dennis1 <dennis1@uxb.liverpool.ac.uk>
Reply-To: WORD-PC@ufobi1.uni-forst.gwdg.de
Message-ID: <21225.9303290905@uxb.liv.ac.uk>
Subject: Word Basic problem....
Newsgroups: bit.mailserv.word-pc
Date: Mon, 29 Mar 93 10:05:50 BST
X-Mailer: ELM [version 2.3 PL11]
Lines: 28