如何检查cmbTypeYacht.text已存在的数据cmbTypeYacht.list?
这是我得到的:
Dim TypeYacht As String 'Type of yacht input
TypeYacht = cmbTypeYacht.Text
If TypeYacht = ("cmbTypeYacht list") Then
MsgBox "Type of Yacht is already on the list", vbExclamation, "Yacht Chantering"
Else
cmbTypeYacht.AddItem cmbTypeYacht.Text
With cmbTypeYacht
.Text = ""
.SetFocus
End With
End If
Run Code Online (Sandbox Code Playgroud)
抱歉标签我不太确定它是什么但我使用Microsoft Visual Basic应用程序.
vba ×1