+ Reply to Thread
Results 1 to 2 of 2

Basic Checkbox question

  1. #1
    MatthewB
    Guest

    Basic Checkbox question

    I am trying to make an excel program such that clicking a check box will
    bring in 5 year budget data from another worksheet into five separate cells,
    and the data will flow into =SUM equations. Also important is that when I
    uncheck the box, the data disappears. I will need to make about 40 of these
    check boxes, each of which refers to a different line of data. The options
    the user will check off are not mutually exclusive, so I need any number of
    them to appear or disappear simultaneously.

    I would appreciate any guidance on what I imagine is not a difficult
    problem, but too difficult for me.
    Thanks!

  2. #2
    Crowbar via OfficeKB.com
    Guest

    Re: Basic Checkbox question

    Try this

    Place both a Checkbox and Textbox on a userform

    And test this code

    Private Sub CheckBox1_Click()

    If CheckBox1.Value = True Then
    TextBox1.Text = "$1500"
    Else
    TextBox1.Text = ""
    End If

    End Sub

    'If you want to capture data from a cell on the worksheet do this do this

    'TextBox1.Text = Sheet1.Cells(1, 1).Text

    You should be able to extend this to accomplish your sheet

    You can contact me at [email protected] if you require further instruction

    --
    Message posted via OfficeKB.com
    http://www.officekb.com/Uwe/Forums.a...mming/200605/1

+ 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