How to Check and uncheck check box through code
Posted on January 5, 2009
1 2 3 4 5 6 7 8 9 10 11 12 | 'System & API - How to Check and uncheck check box through code Private Const BM_SETCHECK = &HF1& Private Const BST_UNCHECKED = &H0& Private Const BST_CHECKED = &H1& Private Const BST_INDETERMINATE = &H2& Private Sub Command1_Click() x = FindWindow("#32770", vbNullString) Button = FindWindowEx(x, 0&, "button", "New") Call SendMessageLong(Button, BM_SETCHECK, BST_UNCHECKED, 0&) End Sub |