Userform Checkbox

B

Bill

Hello,
I have a userform with twelve check boxes, cleverly titled CheckBox1,
CheckBox2, etc.

I would like to record the value of those check boxes on a worksheet (either
true or false). Is there a way of doing that without having to list each
checkbox.

I tried something like the following:

For i = 1 to 12
sheets(1).cells(i,1)=userform.checkbox & i
next i

But without success.

Thanks.

Bill
 
D

Die_Another_Day

Try this:
Sheets(1).Cells(i,1) = UserForm1.Controls("CheckBox" & i).Value

HTH

Die_Another_Day
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top