需要幫助編寫代碼 - 我已經開發了一個用戶窗體。Combobox在另一個組合框內
我需要一個組合框來顯示一個字母的主要部分: 「根據我們的決心,他/她有權要求退款」,「基於我們的決心,他/她不享有退款」
,但我也需要一個組合框中選擇性別: 「他」 「SHE」
到目前爲止我有:
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
有沒有辦法做到:
.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"
樂意提供更多信息。