Home |
Search |
Today's Posts |
#1
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Hello you All:
I have several lines of text I need to replace for the same in bold. I have something like this: GO some text GOAGAIN I need to transform "some text" to "some text" in bold and clean "GO" and "GOAGAIN". How to do that? Thank you all in advanced. Abel. |
#2
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
If by clean you mean remove then you should be able to use Find and Replace
Find GO(?{1,})GOAGAIN Replace \1 Replace format Bold Check Use Wildcards -- Enjoy, Tony wrote in message ups.com... Hello you All: I have several lines of text I need to replace for the same in bold. I have something like this: GO some text GOAGAIN I need to transform "some text" to "some text" in bold and clean "GO" and "GOAGAIN". How to do that? Thank you all in advanced. Abel. |
#3
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
but how do I apply those commands? Is that to be applied to a macro?
something like this: Sub Macro1() ' ' Macro1 Macro ' Macro gravada 29-11-2005 por Abel Mateus Reis Pinto ' With Selection.Find .Text = "b" & "(a)([0-9]{1,})(a)" & "/b" .Replacement.Text = "exchange" .Forward = True .Wrap = wdFindContinue .Format = True .MatchWildcards = True End With End Sub but this doesnt work! why? Thank you once again Abel. |
#4
![]()
Posted to microsoft.public.word.docmanagement
|
|||
|
|||
![]()
Well, yes, _something_ like that, but that doesn't have a whole lot to do
with the original question so what is it that you are actually wanting to do? Can you give a little bit more detail of the format of your data and the actual strings you want to find and replace? -- Enjoy, Tony wrote in message ups.com... but how do I apply those commands? Is that to be applied to a macro? something like this: Sub Macro1() ' ' Macro1 Macro ' Macro gravada 29-11-2005 por Abel Mateus Reis Pinto ' With Selection.Find .Text = "b" & "(a)([0-9]{1,})(a)" & "/b" .Replacement.Text = "exchange" .Forward = True .Wrap = wdFindContinue .Format = True .MatchWildcards = True End With End Sub but this doesnt work! why? Thank you once again Abel. |
Reply |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Header with picture or text box | Page Layout | |||
Creating dynamic cross reference links in a Word document | Microsoft Word Help | |||
How to select paragraph between tow specified words? | Microsoft Word Help | |||
Numbers to appear at the cursor... | New Users | |||
Mirror Text Box | Formatting Long Documents |