![]() |
#4
|
|||
|
|||
![]()
I recorded a macro and it turns out like this:
Sub SpecialFind() ' ' SpecialFind Macro ' ' Selection.Find.ClearFormatting With Selection.Find .Text = "\<value\>*\</value\>" .Replacement.Text = "" .Forward = True .Wrap = wdFindContinue .Format = False .MatchCase = False .MatchWholeWord = False .MatchAllWordForms = False .MatchSoundsLike = False .MatchWildcards = True End With End Sub Now all I have to do is count all the word in the selection(s) and then distract all instances of the word "value". I do not know how to do that yet but I will have a look. Any suggestion is welcome! |
Tags |
font color, loop through all words, vba microsoft word 2013 |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
sojiro | Word VBA | 11 | 01-29-2017 12:59 PM |
![]() |
Pecoflyer | Word VBA | 2 | 11-25-2016 01:07 AM |
PNG on black background printing transparency in different tone of black | NMGMarques | Word | 0 | 03-03-2014 05:19 AM |
![]() |
coffee_king | Word VBA | 1 | 03-24-2012 07:52 PM |
![]() |
ingmar.s | Word | 3 | 10-08-2009 10:23 AM |