Use the same construction again with Combobox2 replaced by Combobox3
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
Check the .ListIndex attribute of the comboboxes. If it returns -1,
display
a message box telling the user that they must make a selection from the
combobox concerned.
--
Hope this helps.
Please reply to the newsgroup unless you wish to avail yourself of my
services on a paid consulting basis.
Doug Robbins - Word MVP, originally posted via msnews.microsoft.com
I was able figure out how to get combobox2 to be required if combobox1
is not empty, but I can't seem to figure out how to also get combobox3
to do the same.
Private Sub CommandButton1_Click()
If ComboBox1.ListIndex <> -1 And ComboBox2.ListIndex = -1 Then
MsgBox "Box2 is Required"
ComboBox2.SetFocus
Else
Unload Me
End If