TechWhirl (TECHWR-L) is a resource for technical writing and technical communications professionals of all experience levels and in all industries to share their experiences and acquire information.
For two decades, technical communicators have turned to TechWhirl to ask and answer questions about the always-changing world of technical communications, such as tools, skills, career paths, methodologies, and emerging industries. The TechWhirl Archives and magazine, created for, by and about technical writers, offer a wealth of knowledge to everyone with an interest in any aspect of technical communications.
Subject:Re: WORD 6.0 MACRO "PUZZLER" From:John McDermott <jjm -at- JKINTL -dot- COM> Date:Wed, 22 Feb 1995 13:15:28 PST
>Greetings:
>Have any of you created and edited macros in Word 6.0 using the WordBasic
>macro language?
Dee,
Here is what you want, I think. I haven't written your complete macro, but
this should point you in the right direction:
From Word Help:
EditReplace
EditReplace [.Find = text,] [.Replace = text,] [
.WholeWord = number,] [.MatchCase = number,] [
.Format = number,] [.ReplaceAll]
Corresponds to the Replace dialog box (Edit menu);
replaces one text string with another.
.Find The text to find.
.Replace The text to replace. If Find and
Replace are omitted, the strings
used in the previous search
and/or replace are used.
.WholeWord Corresponds to the Whole Word
check box.
.MatchCase Corresponds to the Match Case
check box.
.Format Replaces formatting in addition
to, or instead of, text:
0 Does not replace
formatting.
1 Does replace
formatting.
.ReplaceAll Corresponds to clicking the
Replace All button.
To replace formatting in addition to, or instead of,
text, first use the EditFindChar, EditFindPara,
EditFindStyle, EditReplaceChar,
EditReplacePara, EditReplaceStyle,
EditFindClearFormatting, or
EditReplaceClearFormatting instructions to set
up the formatting, and then use EditReplace or
EditFind with Format set to 1.