Guest User

Untitled

a guest
Dec 15th, 2017
112
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. Private Sub ListBox1_Change()
  2.  
  3. Dim s As Boolean: s = False
  4. For i = 0 To ListBox1.ListCount - 1
  5. If ListBox1.Selected(i) Then
  6. s = True
  7. Exit For
  8. End If
  9. Next i
  10. CheckBox1.Enabled = s
  11.  
  12. End Sub
Add Comment
Please, Sign In to add comment