Without a document to evaluate, and the rest of the code for the process, it is difficult to judge, but based upon what you have presented, I would suggest something like:
Code:
Public Sub Test_Document_AcceptAll(newRevision As Revision, _
newbool As Boolean)
If newbool = True Then
ActiveDocument.Revisions.AcceptAll
Else
On Error GoTo RevErr
Select Case True
Case Left(newRevision.FormatDescription, 15) = "Formatted Table": newRevision.Accept
Case Left(newRevision.FormatDescription, 10) = "Formatted:": newRevision.Accept
Case Left(newRevision.FormatDescription, 11) = "Field Code:": newRevision.Accept
End Select
End If
lbl_Exit:
Exit Sub
RevErr:
If Err.Number <> 5852 Then
Err.Clear
GoTo lbl_Exit
Else
Err.Clear
Resume
End If
End Sub