Originally posted by CornedBee
First, I think VB has an Elsif or Elseif keyword that you can use to get rid of the useless indentation and a lot of End Ifs.
True, you could have this:
VB Code:
  1. If lstSeeds.ListCount < 16 Then
  2.     MsgBox "Not Enough Seeds", vbOKOnly, "Not Enough Seeds"
  3. ElseIf lstSeeds.ListCount > 16 Then
  4.     MsgBox "Too Many Seeds", vbOKOnly, "Too Many Seeds"
  5. Else
  6.     If lstLadder.ListCount > 8 Then
  7.         MsgBox "Too Many Ladder Rankings", vbOKOnly, "Too Many Ladder Rankings"
  8.     ElseIf lstLadder.ListCount < 8 Then
  9.         MsgBox "Not Enough Ladder Rankings", vbOKOnly, "Not Enough Ladder Rankings"
  10.     Else
  11. ....
I think that the Select Case version is much more readable though.