I have a UserForm with a ListBox and a CommandButton. I would like to add a code to the UserForm so if I click the CommandButton and the number of items in the ListBox is less than 3 a message box appears that reads "must add another entry". Here is the code I have right now. If you are able to help, thank you!
Code:
[FONT=Times New Roman][SIZE=3]Private Sub CommandButton1_Click()[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]MsgBox "Must add another entry"[/SIZE][/FONT]
[FONT=Times New Roman][SIZE=3]End Sub[/SIZE][/FONT]