CJ7
CJ7

Reputation: 23275

How to convert CheckBox to boolean?

If I have a CheckBox control called chkTest, what would be an accurate way to assign its state to a boolean variable?

Dim blnResult As Boolean
blnResult = [insert code here]

Upvotes: 2

Views: 3025

Answers (1)

CJ7
CJ7

Reputation: 23275

Dim blnResult As Boolean 
blnResult = chkTest = vbChecked

Upvotes: 2

Related Questions