![]() |
|
|
Thread Tools | Display Modes |
#2
|
||||
|
||||
![]()
Try:
Code:
Sub Demo() Application.ScreenUpdating = False With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "[A-Z]." .Replacement.Text = "" .Font.Bold = False .Font.Underline = wdUnderlineNone .Forward = True .Wrap = wdFindStop .Format = True .MatchWildcards = True .Execute End With Do While .Find.Found With .Duplicate If .Start = .Paragraphs.First.Range.Start Then .Paragraphs.First.Range.Text = vbNullString End If End With .Collapse wdCollapseEnd .Find.Execute Loop End With Application.ScreenUpdating = True End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
Thread Tools | |
Display Modes | |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
rsrasc | Word VBA | 7 | 03-28-2014 12:28 PM |
![]() |
ENEMALI | Word VBA | 1 | 09-29-2013 09:05 PM |
![]() |
Microsoftenquirer1000 | Word | 2 | 08-12-2012 02:49 PM |
Linking multiple choice questions to answers | Microsoftenquirer1000 | Word | 1 | 06-11-2012 06:53 AM |
![]() |
excelledsoftware | PowerPoint | 2 | 03-01-2012 07:29 PM |