Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
cyn cyn is offline
external usenet poster
 
Posts: 7
Default Creating a Check Box that produce true or false statement

Hi,

I've seen in someone's worksheet where they have a 2 check box, one that
says "No" and one that says "Yes", when you place your cursor to either one
of these box and click it a check mark appears in the box. If the box is
checked, it produce the word "True" in a different cell, if the box is not
checked, the same cell will have the word "False". I would like to know how
this is created.

Your help is much appreciated!!!! Thanks!!!!
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 159
Default Creating a Check Box that produce true or false statement

Here is a few lines of code that worked for me. Just modify the beginning of
it to where you want it to be copied

ws.Cells(iRow, 3).Value = IIf(Me.CkBox1.Value, "Yes", "No")
ws.Cells(iRow, 4).Value = IIf(Me.CkBox2.Value, "Yes", "No")
ws.Cells(iRow, 5).Value = IIf(Me.CkBox3.Value, "Yes", "No")


"Cyn" wrote:

Hi,

I've seen in someone's worksheet where they have a 2 check box, one that
says "No" and one that says "Yes", when you place your cursor to either one
of these box and click it a check mark appears in the box. If the box is
checked, it produce the word "True" in a different cell, if the box is not
checked, the same cell will have the word "False". I would like to know how
this is created.

Your help is much appreciated!!!! Thanks!!!!

  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 5,939
Default Creating a Check Box that produce true or false statement

2 possible solutions...

1 - From the Forms toolbar drag a check box control onto your sheet. Right
click the control and select Format Control. On the control Tab Place a cell
address in the Linked Cell box. Close the Format Control dialog. Now when you
click the check box you will get true or false in the Linked Cell.

2 - From the Control Toolbox drag a check box to your worksheet. Right click
the control and select properties. In the property Linked Cell add in a Cell
address. Close the properties dialog. Inthe control toolbox you need to exit
design mode by clicking the Ruler and Pencil icon. Once again you have a
check box that Adds tryue and false to the linked cell.
--
HTH...

Jim Thomlinson


"Cyn" wrote:

Hi,

I've seen in someone's worksheet where they have a 2 check box, one that
says "No" and one that says "Yes", when you place your cursor to either one
of these box and click it a check mark appears in the box. If the box is
checked, it produce the word "True" in a different cell, if the box is not
checked, the same cell will have the word "False". I would like to know how
this is created.

Your help is much appreciated!!!! Thanks!!!!

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
TRUE/FALSE STATEMENT Dave Excel Discussion (Misc queries) 4 September 1st 09 11:55 AM
Check if Conditional Format is True or False / Check cell Color Kevin McCartney Excel Worksheet Functions 5 June 29th 07 11:12 AM
Two TRUE to one FALSE statement bluebird Excel Worksheet Functions 4 January 11th 07 04:07 PM
check box - true/false/na Kelly 1st Excel Discussion (Misc queries) 4 July 13th 06 12:44 PM
True Or False, no matter what... it still displays the false statement rocky640[_2_] Excel Programming 2 May 13th 04 04:57 PM


All times are GMT +1. The time now is 12:39 PM.

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"