Besoin d'aide pour écrire un code - J'ai développé un userform.Combobox dans un autre combobox
J'ai besoin d'une zone de liste déroulante pour afficher la section principale d'une lettre: « basée sur notre détermination, il/elle a droit à un remboursement » « basée sur notre détermination, il/elle n'a pas droit à un remboursement »
mais je aussi besoin d'une zone de liste déroulante pour sélectionner le genre: « HE » « ELLE »
jusqu'à présent j'ai:
Private Sub Userform_Initialize()
With ComboBoxDecision
.AddItem "based on our determination HE/SHE is entitled to a refund"
.AddItem "based on our determination HE/SHE is not entitled to a refund"
End With
With ComboBoxGender
.AddItem "HE"
.AddItem "SHE"
End With
lbl_exit:
Exit sub
End Sub
Private Sub CommandButtonOk_Click()
Application.ScreenUpdating = False
With ActiveDocument
.Bookmarks("Decision").Range.Text = ComboBoxDecision.Value
End With
Application.ScreenUpdating = True
Unload Me
End Sub
Est-il possible de le faire:
.AddItem "based on our determination "Whatever option was selected in ComboBoxGender" is entitled to a refund"
.AddItem "based on our determination "Whatever option was selected in ComboBoxGender" is not entitled to a refund"
Heureux de fournir plus d'informations.