需要帮助编写代码 - 我已经开发了一个用户窗体。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"
乐意提供更多信息。