View Single Post
 
Old 02-07-2014, 05:19 PM
macropod's Avatar
macropod macropod is offline Windows 7 32bit Office 2010 32bit
Administrator
 
Join Date: Dec 2010
Location: Canberra, Australia
Posts: 22,467
macropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond reputemacropod has a reputation beyond repute
Default

Try:
Code:
Sub Demo()
Application.ScreenUpdating = False
Dim Rng As Range
With ActiveDocument.Tables(1).Range
  With .Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .Text = "\[*\]"
    .Replacement.Text = ""
    .Forward = True
    .Wrap = wdFindStop
    .Format = False
    .MatchWildcards = True
    .Execute
  End With
  Do While .Find.Found
    If .InRange(ActiveDocument.Tables(1).Range) Then
      If .Cells(1).ColumnIndex = 3 Then
        .Cut
        Set Rng = .Cells(1).Previous.Range
        With Rng
          .End = .End - 1
          If Len(.Text) > 0 Then .InsertAfter Chr(11)
          .Collapse wdCollapseEnd
          .Paste
        End With
      End If
      .Find.Execute
    Else
      Exit Do
    End If
  Loop
End With
Application.ScreenUpdating = True
End Sub
Note: As coded, the macro inserts manual line breaks between the entries. For paragraph breaks, change Chr(11) to vbCr.
__________________
Cheers,
Paul Edstein
[Fmr MS MVP - Word]
Reply With Quote