Aquí tienes una solución para un máximo de cuatro cheques. ¿Alguien se atreve a hacerlo recursivo?

Option Explicit
Dim UF As Integer
Sub Cheques()
' selecciona hasta cuatro cheques para pagar un importe (importe en celda B1)
' se admite un margen en más o en menos (margen en celda E1)
' la relación de cheques iniciales debe estar ordenada de menor a mayor (columna 1, desde A3)
' la salida de los cheques elegidos en columna 4 desde D3
Dim MargenAdmitido As Double
Dim Objetivo As Double
Objetivo = Cells(1, 2)
MargenAdmitido = Cells(1, 5)
UF = Cells(10000, 1).End(xlUp).Row
Range("b3:d" & UF).Clear
ElegirUncheque Objetivo + MargenAdmitido, Objetivo - MargenAdmitido
End Sub
Sub ElegirUncheque(ImporteMaximo As Double, ImporteMinimo As Double)
Dim i As Integer
Dim f As Integer
Dim EncontradaSolucion As Boolean
Dim UF2 As Integer
Dim UF3 As Integer
Const N As Integer = 1
UF = Cells(10000, N).End(xlUp).Row ' última fila columna cheques iniciales
UF2 = Cells(10000, N + 1).End(xlUp).Row + 1 ' última fila columna chiques disponibles
UF3 = Cells(10000, 4).End(xlUp).Row + 1 ' ultima fila columna de cheques elegidos
' genero los cheques utilizables
f = 3
For i = 3 To UF
If Cells(i, N) > ImporteMaximo Then
Exit For ' supongo la lista de cheques ordenada ascendente
Else
Cells(f, N + 1) = Cells(i, N)
f = f + 1
End If
Next i
' busco si en esa lista tenemos un cheque que cumpla la condición
For i = 3 To UF
If Cells(i, N + 1) >= ImporteMinimo And Cells(i, N + 1) <= ImporteMaximo Then
Range("D" & UF3) = Cells(i, N + 1)
EncontradaSolucion = True
Exit Sub
End If
Next i
ElegirDoscheques ImporteMaximo, ImporteMinimo
End Sub
Sub ElegirDoscheques(Imax As Double, Imin As Double)
Dim i As Integer
Dim j As Integer
Dim PrimerCheque As Double
Dim EncontradaSolucion As Boolean
Dim UF2 As Integer
Dim UF3 As Integer
Const N As Integer = 1
UF2 = Cells(10000, N + 1).End(xlUp).Row + 1 ' última fila columna cheques disponibles
UF3 = Cells(10000, 4).End(xlUp).Row + 1 ' ultima fila columna de cheques elegidos
For i = 3 To UF2
PrimerCheque = Cells(i, 2)
For j = i + 1 To UF2
If Cells(j, 2) > Imax - PrimerCheque Then
Exit For ' no sigo leyendo porque todos los demás exceden
End If
If PrimerCheque + Cells(j, 2) >= Imin And PrimerCheque + Cells(j, 2) <= Imax Then
Range("D" & UF3) = PrimerCheque
Range("D" & UF3 + 1) = Cells(j, 2)
EncontradaSolucion = True
Exit Sub
End If
Next
Next i
ElegirTresCheques Imax, Imin
End Sub
Sub ElegirTresCheques(Imax As Double, Imin As Double)
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim PrimerCheque As Double
Dim SegundoCheque As Double
Dim Parcial As Double
Dim EncontradaSolucion As Boolean
Dim UF2 As Integer
Dim UF3 As Integer
Const N As Integer = 1
Dim Res As String
UF2 = Cells(10000, N + 1).End(xlUp).Row + 1 ' última fila columna cheques disponibles
UF3 = Cells(10000, 4).End(xlUp).Row + 1 ' ultima fila columna de cheques elegidos
For i = 3 To UF2
PrimerCheque = Cells(i, 2)
For j = i + 1 To UF2
SegundoCheque = Cells(j, 2)
Parcial = PrimerCheque + SegundoCheque
For k = j + 1 To UF2
If Cells(k, 2) > Imax - Parcial Then
Exit For ' no sigo leyendo porque todos los demás exceden
End If
If Parcial + Cells(k, 2) >= Imin And Parcial + Cells(k, 2) <= Imax Then
Range("D" & UF3) = PrimerCheque
Range("D" & UF3 + 1) = SegundoCheque
Range("D" & UF3 + 2) = Cells(k, 2)
EncontradaSolucion = True
Exit Sub
End If
Next k
Next j
Next i
ElegirCuatroCheques Imax, Imin
End Sub
Sub ElegirCuatroCheques(Imax As Double, Imin As Double)
Dim i As Integer
Dim j As Integer
Dim k As Integer
Dim m As Integer
Dim PrimerCheque As Double
Dim SegundoCheque As Double
Dim TercerCheque As Double
Dim Parcial As Double
Dim EncontradaSolucion As Boolean
Dim UF2 As Integer
Dim UF3 As Integer
Const N As Integer = 1
Dim Res As String
UF2 = Cells(10000, N + 1).End(xlUp).Row + 1 ' última fila columna cheques disponibles
UF3 = Cells(10000, 4).End(xlUp).Row + 1 ' ultima fila columna de cheques elegidos
For i = 3 To UF2 ' primer chique
PrimerCheque = Cells(i, 2)
For j = i + 1 To UF2 ' segundo cheque
SegundoCheque = Cells(j, 2)
Parcial = PrimerCheque + SegundoCheque
For k = j + 1 To UF2 ' tercer cheque
If Cells(k, 2) > Imax - Parcial Then
Exit For ' no sigo leyendo porque todos los demás exceden
End If
TercerCheque = Cells(k, 2)
Parcial = PrimerCheque + SegundoCheque + TercerCheque
For m = k + 1 To UF2 ' cuarto cheque
If Cells(m, 2) > Imax - Parcial Then
Exit For ' no sigo leyendo porque todos los demás exceden
End If
If Parcial + Cells(m, 2) >= Imin And Parcial + Cells(m, 2) <= Imax Then
Range("D" & UF3) = PrimerCheque
Range("D" & UF3 + 1) = SegundoCheque
Range("D" & UF3 + 2) = TercerCheque
Range("D" & UF3 + 3) = Cells(m, 2)
EncontradaSolucion = True
Exit Sub
End If
Next m
Next k
Next j
Next i
Res = MsgBox("No encontrada solución ", vbInformation)
End Sub