Joco,
Je viens de tester ta solution elle ne marche pas.
Pedro22,
J' ai essayé avec le code :
Private Sub UserForm_Initialize()
With ListBox1
For i = 0 To ListCount - 1
.List(i, 8) = Format(Range(.List(i, 8).Value, "0.00€"))
Next i
End With
End Sub
Cela ne fonctionne pas non plus. L'UserForm fonctionne de la façon suivant. On coche un CheckBox pas Frame et en fonction du nombre de choix fait, il me sort la liste présente dans la feuille "Filtrage". Voici une parti du codage:
Private Sub CheckBox1_Click()
If CheckBox1.Value = True Then
CheckBox2.Value = False
CheckBox3.Value = False
CheckBox4.Value = False
CheckBox5.Value = False
Sheets("Filtrage").Select
Range("B2").Value = "Plein"
End If
If CheckBox1.Value = False Then
Sheets("Filtrage").Select
Range("B2").Value = ""
End If
If Range("AF4").Value = "0" Then
With ListBox1
ListBox1.List = Sheets("Filtrage").Range("Y6:AF273").Value
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.List(i) = "" Then ListBox1.RemoveItem (i)
Next i
End With
End If
If Range("AF4").Value = "1" Then
With ListBox1
ListBox1.List = Sheets("Filtrage").Range("Y6:AF273").Value
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.List(i) = "" Then ListBox1.RemoveItem (i)
Next i
End With
End If
If Range("AN4").Value = "2" Then
With ListBox1
ListBox1.List = Sheets("Filtrage").Range("AG6: AN273 ").Value
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.List(i) = "" Then ListBox1.RemoveItem (i)
Next i
End With
End If
If Range("AV4").Value = "3" Then
With ListBox1
ListBox1.List = Sheets("Filtrage").Range("AO6: AV273 ").Value
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.List(i) = "" Then ListBox1.RemoveItem (i)
Next i
End With
End If
If Range("BD4").Value = "4" Then
With ListBox1
ListBox1.List = Sheets("Filtrage").Range("AW6: BD273 ").Value
For i = ListBox1.ListCount - 1 To 0 Step -1
If ListBox1.List(i) = "" Then ListBox1.RemoveItem (i)
Next i
End With
End If
Sheets("Estimation").Select
End Sub
Voici à quoi ressemble l'UserForm: