Article View: bit.mailserv.word-pc
Article #14049Word Basic Gurus Only!
From: dennis1
Date: Mon, 29 Mar 1993 16:46
Date: Mon, 29 Mar 1993 16:46
30 lines
1908 bytes
1908 bytes
Her,e in a nut-shell, is the essence of the macro I asked for help on this morning. While it works, the programmer in me cringes at the idea of using a Goto to both make a loop and jump out of it. Surely there must be a better way! Sub MAIN Rem Enlarge al occurences of "the" Activate "Test.Doc" StartOfDocument here: EditFind .Find = "the", .WholeWord = 1, .Direction = 2 If Not EditFindFound() Then Goto bye a$ = Selection$() FontSize(18) Goto here bye: End Sub It seems that one could do with a Repeat....Until command. Any ideas wellcome! 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:
<16754.9303291646@uxb.liv.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!europa.eng.gtefsd.com!paladin.american.edu!auvm!UXB.LIVERPOOL.AC.UK!DENNIS1Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 106cba,f6ae9337ee703ba2,start X-Google-Attributes: gid106cba,public X-Google-ArrivalTime: 1993-03-29 09:41:33 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: <16754.9303291646@uxb.liv.ac.uk> Subject: Word Basic Gurus Only! Newsgroups: bit.mailserv.word-pc Date: Mon, 29 Mar 93 17:46:01 BST X-Mailer: ELM [version 2.3 PL11] Lines: 30