Entonces quedaria así:
Sub resumen()
'4c7569735f50
Application.ScreenUpdating = False
Worksheets("CtasxPagar").Range("A:D").Clear
Worksheets("CtasxPagar2").Select
Range("B8").Select
Range(Selection, Selection.End(xlDown)).Select
Selection.Copy
Worksheets("CtasxPagar").Select
[A7] = "Proveedor"
[b7] = "Vencido"
[c7] = "Vencer"
[D7] = "Monto Acum. de Facturas"
Range("A8").Select
ActiveSheet.Paste
Application.CutCopyMode = False
[a8].Select
Range(Selection, Selection.End(xlDown)).Select
Selection.RemoveDuplicates Columns:=1, Header:=xlNo
Range("A8").Select
'realiza suma
Dim b As Long
Dim v As Long
Dim s As Byte
b = Application.WorksheetFunction.CountA(Worksheets("CtasxPagar2").Range("A8:A65535")) + 7
v = Application.WorksheetFunction.CountA(Worksheets("CtasxPagar").Range("A8:A65535")) + 7
If b <= 1 Then Application.ScreenUpdating = True: Exit Sub
Dim base As Range
Dim resumen As Range
For Each resumen In Worksheets("CtasxPagar").Range("A8:" & "A" & v)
For Each base In Worksheets("CtasxPagar2").Range("B8:" & "B" & b)
If resumen = base And base.Offset(0, -1) < Date Then _
resumen.Offset(0, 1) = resumen.Offset(0, 1) + base.Offset(0, 1)
If resumen = base And base.Offset(0, -1) >= Date Then _
resumen.Offset(0, 2) = resumen.Offset(0, 2) + base.Offset(0, 1)
Next
Next
Set base = Nothing
Set resumen = Nothing
Application.ScreenUpdating = True
s = MsgBox("Resumen Completado - deseas imprimirlo ?", vbQuestion + vbYesNo)
If s = 6 Then
Worksheets("CtasxPagar2").Range("A5:" & "D" & v).PrintOut
End If
End Sub