Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 2
Default 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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 128
Default 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 if you require further instruction

--
Message posted via OfficeKB.com
http://www.officekb.com/Uwe/Forums.a...mming/200605/1
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Visual Basic CheckBox Codes Su Excel Discussion (Misc queries) 1 January 6th 08 11:50 PM
Checkbox Question slow386 Excel Discussion (Misc queries) 7 July 21st 07 12:06 AM
Checkbox Basic Help Bryan Bloom Excel Discussion (Misc queries) 3 November 1st 05 09:41 PM
CheckBox question Frank Rudd via OfficeKB.com Excel Programming 2 July 1st 05 12:35 AM
CheckBox question Sheldon Excel Programming 6 January 25th 05 05:11 PM


All times are GMT +1. The time now is 09:39 AM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"