Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Checkmark and Value Automatically Appear in Cell


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   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 26
Default Checkmark and Value Automatically Appear in Cell

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
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
insert a checkmark 8Gent'M' Excel Discussion (Misc queries) 11 February 17th 16 10:03 AM
checkmark boxes ajr81 Excel Discussion (Misc queries) 4 November 9th 07 03:53 PM
Checkmark instead of InputBox daniel chen Excel Discussion (Misc queries) 4 April 17th 05 05:19 PM
Cell to accept checkmark or "x" Shadyhosta New Users to Excel 3 December 29th 04 05:09 PM
Enter a "checkmark" in an AutoFiltered cell L Mehl Excel Programming 2 September 27th 04 12:30 AM


All times are GMT +1. The time now is 07:17 PM.

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

About Us

"It's about Microsoft Excel"