![]() |
|
#1
|
||||
|
||||
![]()
To box the whole 'word' containing the ChrW(9700), you could use:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "[aeiouy]" & ChrW(9700) & "[bcdfghjklmnpqrstvwxyz]*>" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True .Execute End With Do While .Find.Found .Start = .Words.First.Start .Borders.Enable = True .Collapse wdCollapseEnd .Find.Execute Loop End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
#2
|
|||
|
|||
![]()
amazing! but it boxes the whole of the second word, is there a way to just have it box the first letter?
Also, is there a way to add extra ’vowels’ to the list like eu, au, etc |
![]() |
Tags |
complex, connected, insert, macro, n00b |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Adding information from a array into a table | jcorti | Word VBA | 4 | 01-10-2014 10:58 PM |
![]() |
tinfanide | Excel Programming | 4 | 12-26-2012 08:56 PM |
![]() |
andrei | Excel | 9 | 02-03-2012 03:40 AM |
How to capture start and ending Ref. Nos. in an array | KIM SOLIS | Excel | 5 | 09-07-2011 07:43 AM |
Look up an array based on user input | johnsmb | Excel | 2 | 01-07-2011 01:12 PM |