PC Review


Reply
Thread Tools Rate Thread

Creating a Check Box that produce true or false statement

 
 
=?Utf-8?B?Q3lu?=
Guest
Posts: n/a
 
      2nd Nov 2007
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 With Quote
 
 
 
 
=?Utf-8?B?TWVraW5uaWs=?=
Guest
Posts: n/a
 
      2nd Nov 2007
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!!!!

 
Reply With Quote
 
=?Utf-8?B?SmltIFRob21saW5zb24=?=
Guest
Posts: n/a
 
      2nd Nov 2007
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 With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
if statement true=now false retains last true 173 Microsoft Excel Worksheet Functions 3 31st Aug 2008 05:54 PM
Check if Conditional Format is True or False / Check cell Color =?Utf-8?B?S2V2aW4gTWNDYXJ0bmV5?= Microsoft Excel Worksheet Functions 5 29th Jun 2007 11:12 AM
Re: Two TRUE to one FALSE statement Bob Phillips Microsoft Excel Worksheet Functions 0 11th Jan 2007 11:36 AM
True Or False, no matter what... it still displays the false statement rocky640 Microsoft Excel Programming 2 13th May 2004 04:57 PM
Strange bug: condition true in IF statement, false the next statement =?Utf-8?B?SGF0dWwgU2hpbGd5?= Microsoft C# .NET 5 3rd Mar 2004 04:27 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:57 AM.