Reply
 
Thread Tools Display Modes
  #1   Report Post  
Posted to microsoft.public.word.docmanagement
jbesr1230 jbesr1230 is offline
external usenet poster
 
Posts: 4
Default macro to bold, in green, times new roman font size14 all text betweenbraces"["

Hello,
I would like a macro the would make all text between braces "[ text ]"
green, bold and in times new roman font size 14. All, if possible the
macro would remove the braces when done.

Thank-you.

JB
  #2   Report Post  
Posted to microsoft.public.word.docmanagement
Graham Mayor Graham Mayor is offline
external usenet poster
 
Posts: 19,312
Default macro to bold, in green, times new roman font size14 all text between braces"["

Sub ReplaceExample()
With Selection
.HomeKey unit:=wdStory
With .Find
.ClearFormatting
.Replacement.ClearFormatting
'**********************
.Text = "\[(*)\]"
.Replacement.Text = "\1"
.Replacement.Font.name = "Times New Roman"
.Replacement.Font.Color = wdColorGreen
.Replacement.Font.Bold = True
'**********************
.Forward = True
.Wrap = wdFindContinue
.Format = True
.MatchCase = False
.MatchWholeWord = False
.MatchAllWordForms = False
.MatchSoundsLike = False
.MatchWildcards = True
.Execute Replace:=wdReplaceAll
End With
End With
End Sub

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

--

Graham Mayor - Word MVP

My web site www.gmayor.com
Word MVP web site http://word.mvps.org



jbesr1230 wrote:
Hello,
I would like a macro the would make all text between braces "[ text ]"
green, bold and in times new roman font size 14. All, if possible the
macro would remove the braces when done.

Thank-you.

JB



Reply
Thread Tools
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Times New Roman Bold? Steve Microsoft Word Help 4 August 24th 07 11:13 PM
Times New Roman Bold Issues Pree Microsoft Word Help 3 July 27th 07 08:20 AM
Font anomaly - Times New Roman Bold Mike Faulkner Microsoft Word Help 4 January 5th 07 01:33 PM
Font "Times New Roman" switches to "Times" without warning. Charm Microsoft Word Help 0 October 20th 06 03:50 PM
Why does Word 2003 "find" text only a few times? Hal in Minneapolis Microsoft Word Help 0 February 25th 06 04:38 AM


All times are GMT +1. The time now is 09:03 AM.

Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 Microsoft Office Word Forum - WordBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Word"