![]() |
#2
|
||||
|
||||
![]()
Try:
Code:
Sub Demo() Application.ScreenUpdating = False Dim i As Long, Str As String With ActiveDocument.Range With .Find .ClearFormatting .Replacement.ClearFormatting .Text = "\(*\)" .Replacement.Text = "" .Forward = True .Wrap = wdFindStop .Format = False .MatchWildcards = True .MatchSoundsLike = False .Execute End With Do While .Find.Found i = i + 1 Str = Str & " " & .Text .Find.Execute Loop .Start = ActiveDocument.Range.Start .End = ActiveDocument.Range.End .Find.Execute Replace:=wdReplaceAll .InsertAfter vbCr .Paragraphs.Last.Style = wdStyleNormal Str = Replace(Trim(Str), ") (", Chr(11)) Str = Mid(Str, 2, Len(Str) - 2) .InsertAfter Str End With Application.ScreenUpdating = True MsgBox i & " records processed." End Sub
__________________
Cheers, Paul Edstein [Fmr MS MVP - Word] |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
![]() |
Orehrepus | Word | 1 | 07-13-2014 12:51 PM |
![]() |
rekent | Word VBA | 2 | 05-13-2014 06:53 AM |
![]() |
hommi16 | Excel | 2 | 06-05-2013 09:19 PM |
number in footnote line | ScientificKat | Word | 2 | 07-09-2012 06:25 AM |
Footnote text is not aligned with the corresponding number | Patrick1988 | Word | 0 | 08-28-2010 09:33 PM |