View Single Post
 
Old 02-23-2022, 03:12 PM
Guessed's Avatar
Guessed Guessed is offline Windows 10 Office 2016
Expert
 
Join Date: Mar 2010
Location: Canberra/Melbourne Australia
Posts: 4,176
Guessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant futureGuessed has a brilliant future
Default

Try this version
Code:
Sub BulletsToPara()
  Selection.Style = ActiveDocument.Styles("N-BodyText,n-bd")
  With Selection.Find
    .ClearFormatting
    .Replacement.ClearFormatting
    .Text = "^t(*)^13"
    .Replacement.Text = " (\1)^13"
    .Forward = True
    .Wrap = wdFindStop
    .Format = False
    .MatchCase = False
    .MatchWholeWord = False
    .MatchWildcards = True
    .MatchSoundsLike = False
    .MatchAllWordForms = False
    .Execute Replace:=wdReplaceAll

    .Text = "^13"
    .Replacement.Text = ". "
    .MatchWildcards = False
    .Execute Replace:=wdReplaceAll
    
    .Text = "(..)"    'not seeing the use of this one???
    .Replacement.Text = "."
    .Execute Replace:=wdReplaceAll
    
    .Text = ". . "
    .Replacement.Text = ". "
    .Execute Replace:=wdReplaceAll
  End With
End Sub
__________________
Andrew Lockton
Chrysalis Design, Melbourne Australia
Reply With Quote