+ Reply to Thread
Results 1 to 2 of 2

Userform Checkbox

  1. #1
    Bill
    Guest

    Userform Checkbox

    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



  2. #2
    Die_Another_Day
    Guest

    Re: Userform Checkbox

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

    HTH

    Die_Another_Day
    Bill wrote:
    > 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



+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1