Re : Forcer des zones de listes à une case particulière
ça marche merci beaucoup.
Maintenant l'autre soucis est que le résultat ne s'inscris pas dans la case dont voici le programme:
Private Sub CommandButton3_Click()
Dim k As Long
Dim Rang As Double
Dim Al As Long
Dim plagerecherche As Range
Dim o As Object
'Set o = CreateObject("Function.Match")
Set plagerecherche = Worksheets("Réglages").Range("O2:O10000")
With Sheets("Réglages")
Rang = Application.Index(.Range("N2:N20000"), Application.Match(.Range("D29"), .Range("N2:N20000"), 1))
End With
Worksheets("Réglages").Cells(1, 1).Value = Rang
k = 0
For k = 1 To 10000
If (Worksheets("Réglages").Cells(k, 14).Value = Rang) And (Worksheets("Réglages").Cells(k, 14).Value) < Worksheets("Réglages").Cells(25, 3).Value Then
Worksheets("Réglages").Cells(29, 7).Value = Worksheets("Réglages").Cells(k, 15).Value
Exit For
End If
Next
With Sheets("Réglages")
Rang = Application.Index(.Range("N2:N20000"), Application.Match(.Range("D30"), .Range("N2:N20000"), 1))
End With
k = 0
For k = 1 To 10000
If (Worksheets("Réglages").Cells(k, 14).Value = Rang) And (Worksheets("Réglages").Cells(k, 15).Value) > Worksheets("Réglages").Cells(25, 3).Value Then
Worksheets("Réglages").Cells(30, 7).Value = Worksheets("Réglages").Cells(k, 15).Value
Exit For
End If
Next
With Sheets("Réglages")
Rang = Application.Index(.Range("N2:N20000"), Application.Match(.Range("D31"), .Range("N2:N20000"), 1))
End With
k = 0
For k = 1 To 10000
If (Worksheets("Réglages").Cells(k, 14).Value = Rang) And (Worksheets("Réglages").Cells(k, 14).Value) < Worksheets("Réglages").Cells(25, 3).Value Then
Worksheets("Réglages").Cells(31, 7).Value = Worksheets("Réglages").Cells(k, 15).Value
Exit For
End If
Next
End Sub
Qu'avez-vous vous quand vous cliquez sur "Calcul de la norme" ?
Merci d'avance.