View Single Post
 
Old 06-23-2015, 04:06 AM
gmayor's Avatar
gmayor gmayor is offline Windows 7 64bit Office 2010 32bit
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

Based on your description, the following macro shoudl do the job. Test it on a copy of the document:
Code:
Option Explicit
Sub DeleteBoldSentences()
Dim oSentence As Range
    For Each oSentence In ActiveDocument.Range.Sentences
        If Not IsInteger(Asc(oSentence.Characters(1))) Then
            Do While oSentence.Characters.Last = Chr(13)
                oSentence.End = oSentence.End - 1
            Loop
            If oSentence.Characters(1).Font.Bold Then oSentence.Delete
        End If
    Next oSentence
lbl_Exit:
    Set oSentence = Nothing
    Exit Sub
End Sub

Private Function IsInteger(ByVal i As String) As Boolean
    Select Case i
        Case 48 To 57
            IsInteger = True
        Case Else
            IsInteger = False
    End Select
lbl_Exit:
    Exit Function
End Function
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote