CheckState
(number) The checkbox state to search for. Only items with this checkbox state will be counted. Choose from:
CONSTANT |
VALUE DESCRIPTION |
|
BST_UNCHECKED |
0 |
Unchecked items. |
BST_CHECKED |
1 |
Checked items. |
BST_INDETERMINATE |
2 |
"Indeterminate" state items. |
Re t u r n s
(number) The number of items currently checked in the listbox object. If an error occurs or no items are checked, -1 will be returned. You can use Application.GetLastError to determine whether this action failed, and why.