hide all text between [ ] (square brackets) and hide thebrackets.

J

jbesr1230

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
 
G

Graham Mayor

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top