PC Review


Reply
Thread Tools Rate Thread

Can a checkbox be created with a logic function?

 
 
SteveF
Guest
Posts: n/a
 
      18th Feb 2010
I currently have a SS that utilizes a column of checkboxes. I also have a
macro that filters for checkboxes that are TRUE, thus hiding the rows with
unchecked boxes. The two things I don't like with this configuration are that
the checkboxes are too small, and when I filter, many of the unchecked
checkboxes superimpose themselves on what becomes visible on the SS.

So my question is: can a logic function be written so that if an open cell
is selected, it is automatically populated with a text checkmark? And
secondly, if a cell with that checkmark is selected again, the checkmark is
removed.
 
Reply With Quote
 
 
 
 
dan dungan
Guest
Posts: n/a
 
      18th Feb 2010
Hi Steve,

I'm not sure which Excel version you're using, but when I try adding
checkboxes to a spreadsheet with Excel 2000, the workbook starts to
crash unexpectedly to more objects I add.

Your situation sounds like a job for a userform.

Dan
 
Reply With Quote
 
SteveF
Guest
Posts: n/a
 
      18th Feb 2010
Update: sorry I'm using 2003. I've never done any logic statements but I was
hoping it would be easy and look something like this (I know these are not
the right symbols): (IF A1,("") then (ü) IF A1,(ü) then (""))

Maybe I'm just being stupid

"dan dungan" wrote:

> Hi Steve,
>
> I'm not sure which Excel version you're using, but when I try adding
> checkboxes to a spreadsheet with Excel 2000, the workbook starts to
> crash unexpectedly to more objects I add.
>
> Your situation sounds like a job for a userform.
>
> Dan
> .
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      18th Feb 2010
Hi Steve,

You could use the check box from the character map.

I found the characters in the Wingdings font.

I needed to change the font for the column containing the formula. So
you could do this with conditional formatting.

0x52 = R*
,0x2A=R

=IF(F22="",R,0x2A)
 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      19th Feb 2010
I accidentally sent the previous message before I was finished.

What I meant was:

In excel 2000 on my computer, the wingdings 2 font has Character code
0x52 which shows R until you change the font to wingdings2. Then you
see the check mark in a box.

Character code 0x2A shows R* which is an empty box.

So if you are evaluating A1 the formula,
=IF(A1="",R*,R)

Dan
 
Reply With Quote
 
SteveF
Guest
Posts: n/a
 
      19th Feb 2010
Thanks Dan. I've never done a logical function before, but I couldn't get
that to work for me. It looks as if your fomula could create a checkmark in a
cell other than the one that was clicked on? Or maybe I just missed something.

"dan dungan" wrote:

> I accidentally sent the previous message before I was finished.
>
> What I meant was:
>
> In excel 2000 on my computer, the wingdings 2 font has Character code
> 0x52 which shows R until you change the font to wingdings2. Then you
> see the check mark in a box.
>
> Character code 0x2A shows R* which is an empty box.
>
> So if you are evaluating A1 the formula,
> =IF(A1="",R*,R)
>
> Dan
> .
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      19th Feb 2010
Hi Steve,

I'm not clear what you want to accomplish. Do you need to click on the
check box?

Did you put the formula in a cell on your worksheet? I put the formula
in B1

Dan
 
Reply With Quote
 
SteveF
Guest
Posts: n/a
 
      22nd Feb 2010
I'm trying to get a cell to display a checkmark when I select that cell. I
don't want to have to do anything more than select the cell.

If there's already a checkmark in the cell, I'd like it to be removed
automatically by merely selecting that cell.

I think I'm asking for too much though

"dan dungan" wrote:

> Hi Steve,
>
> I'm not clear what you want to accomplish. Do you need to click on the
> check box?
>
> Did you put the formula in a cell on your worksheet? I put the formula
> in B1
>
> Dan
> .
>

 
Reply With Quote
 
dan dungan
Guest
Posts: n/a
 
      23rd Feb 2010
I misunderstood your request. I'm not sure how to do that.

I'm wondering though. . .Is something going to happen to the data
based on the check mark?

Is the check mark structural or cosmetic?

Are you using it to filter the data?
 
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
How do you assess the state of a form-checkbox in a logic statemen jvatlanta Microsoft Excel Worksheet Functions 1 4th Aug 2009 05:13 PM
IF/OR Logic Function Jason Microsoft Excel Worksheet Functions 7 30th Jan 2009 02:53 AM
Logic function for between pallen Microsoft Excel Misc 3 4th Jan 2008 11:38 PM
Logic Question about Public Method I created. SouthSpawn Microsoft Dot NET Framework Forms 1 11th Apr 2005 05:55 PM
Logic Function Paul Axelrod Microsoft Excel Misc 3 29th Dec 2003 12:36 PM


Features
 

Advertising
 

Newsgroups
 


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