Anyone
in user Forfm
1. When clicked on above combobox1 or on the arrowbutton of the combobox1 i want a msg that combobox is Empty and the list is also empty and gives the option to select from another combobox2 ----- How to achieve this ?
I tried the below in Combobox1_Change event nothing worked also in Combobox1_Click Event it did not work
Thanks in Advance
NimishK
in user Forfm
Code:
Private Sub UserForm_Initialize()
combobox1.dropstyle = 1-FrmDropButtonStyleArrow
'when UserForm is Intialized or activated the
combobox1.value = "" 'or
combobox1.text = ""
End Sub
1. When clicked on above combobox1 or on the arrowbutton of the combobox1 i want a msg that combobox is Empty and the list is also empty and gives the option to select from another combobox2 ----- How to achieve this ?
I tried the below in Combobox1_Change event nothing worked also in Combobox1_Click Event it did not work
Code:
'If cmbProdCode Is Nothing Then
'If cmbProdCode.ListIndex = -1 Then
'If cmbProdCode = vbNullString Then
'If cmbProdCode.Value = "" Then
' MsgBox "Empty" , vbOKOnly
'End If
Thanks in Advance
NimishK
Last edited: