Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]() I am trying to figure out how to create a macro that when the user clicks on the checkbox, a numeric value automatically appears in a cell. For example, I click Checkbox 1 and the number 8 appears in CELL A1...I click on Checkbox 2 and the number 12 automatically appears in CELL A2...so on and so forth. I am a beginner with excel programming, so any help would be appreciated!!! :) Thanks, Newbie -- xlsmacronewbie ------------------------------------------------------------------------ xlsmacronewbie's Profile: http://www.excelforum.com/member.php...o&userid=25700 View this thread: http://www.excelforum.com/showthread...hreadid=391127 |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
This my be to simplistic for your needs...but in the "change" event of the
checkbox try the following code (or somthing similar) If CheckBox1.Value = True Then 'checks the state of the checkbox Range("A1").FormulaR1C1 = 8 Else Range("A1").FormulaR1C1 = "" End If "xlsmacronewbie" wrote: I am trying to figure out how to create a macro that when the user clicks on the checkbox, a numeric value automatically appears in a cell. For example, I click Checkbox 1 and the number 8 appears in CELL A1...I click on Checkbox 2 and the number 12 automatically appears in CELL A2...so on and so forth. I am a beginner with excel programming, so any help would be appreciated!!! :) Thanks, Newbie -- xlsmacronewbie ------------------------------------------------------------------------ xlsmacronewbie's Profile: http://www.excelforum.com/member.php...o&userid=25700 View this thread: http://www.excelforum.com/showthread...hreadid=391127 |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
insert a checkmark | Excel Discussion (Misc queries) | |||
checkmark boxes | Excel Discussion (Misc queries) | |||
Checkmark instead of InputBox | Excel Discussion (Misc queries) | |||
Cell to accept checkmark or "x" | New Users to Excel | |||
Enter a "checkmark" in an AutoFiltered cell | Excel Programming |