Bonjour à tous,
d'abord merci à toute les personne qui m'on aidés auparavant,
je planche actuellement sur un frame ou cadre contenant 03 "optionButton" représentant le nombre de mensualité (06 mois, 12 mois, 15 mois) selon que l'on clique dessus le prix est divisé par les chiffres 6, 12 ou 15 j'ai essayé le code suivant mais ça coince dans l'attribution du chiffre:
Private Sub UserForm_Click()
Dim Ctrl As Control
For Each Ctrl In Frame1.Controls
If Ctrl.Object.Value = True Then
Ctrl.Object.value = Echeance
Exit For
End If
Next Ctrl
End Sub
Private Sub CommandButton1_Click()
RowCount = Worksheets("Feuil2").Range("A1").CurrentRegion.Rows.Count
With Worksheets("Feuil2").Range("A1")
.Offset(RowCount, 0).Value = Nom.Value
.Offset(RowCount, 2).Value = Echeance.Value
End With
End Sub
merci d'avance