![]() |
#4
|
||||
|
||||
![]()
Alternatively, to handle the exceptions noted by Greg:
Code:
Sub DeleteCap3Word() With ActiveDocument.Range With .Find .ClearFormatting .Text = "<[A-Z]{3}>" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = True .MatchWildcards = True .Execute End With Do While .Find.Found Select Case .Text Case "MRI", "USB", "PSA" Case Else: .Words.First.Delete End Select .Collapse wdCollapseEnd .Find.Execute Loop End With End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Powerpoint 2013 unable to locate word | bc320 | PowerPoint | 0 | 06-22-2015 08:00 AM |
Cannot Locate Archived Messages | abraxis | Outlook | 0 | 06-10-2014 03:32 PM |
Microsoft Office Professional 2010 on Windows 8 problem error cannot locate pst files | CDM | Outlook | 0 | 12-21-2013 06:36 AM |
Can't find Office 2010 product key. How to locate it? | alecus | Office | 1 | 07-24-2012 04:00 PM |
Unable to locate Microsoft Office 2003 Language settings. | EzyMe | Office | 0 | 09-28-2010 01:09 PM |