小编bla*_*ler的帖子

如何检查组合框列表中是否已存在数据?

如何检查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

6
推荐指数
2
解决办法
3万
查看次数

标签 统计

vba ×1