hide all text between [ ] (square brackets) and hide the  
Author Message
BCarnathan





PostPosted: Tue Apr 08 22:20:55 PDT 2008 Top

MS Word Doc >> hide all text between [ ] (square brackets) and hide the

Hello,
I would like a Microsoft macro that would hide all text between
[ ] (square brackets) and hide the brackets.


Can anyone provide this? Thank-you.

JB

Word57  
 
 
Graham





PostPosted: Tue Apr 08 22:20:55 PDT 2008 Top

MS Word Doc >> hide all text between [ ] (square brackets) and hide the With Selection
With .Find
.ClearFormatting
.Replacement.ClearFormatting
.Text = "\[*\]"
.Replacement.Text = "^&"
.Replacement.Font.Hidden = True
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
End With

http://www.gmayor.com/installing_macro.htm



> Hello,
> I would like a Microsoft macro that would hide all text between
> [ ] (square brackets) and hide the brackets.
>
>
> Can anyone provide this? Thank-you.
>
> JB