#1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default checkboxes

checkboxes, when linked to cells, store either TRUE or
FALSE in them...

Boolean...

is it possible to set the default item stored to 1 and 0 ,
so that a PivotTable could work with the sums better?

I can run through and change the TRUE/FALSE to 1/0 if I
need to, but it will just take extra time.

Thanks.
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 18
Default checkboxes

The default value is either true or false. You cannot have 1 AND 0 at the
same time as argumentos of a boolean control as it can only assume either one
state or the other.
  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default checkboxes

Not entirely true, since the triple state property allows the control to
take on a null value. Thus there are three valid values: null, true or
false.
I do not believe you can return a 0 or 1 from the control, however you can
set the value to 0 and 1 for true or false.

Cheers
Nigel

"cmart02" wrote in message
...
The default value is either true or false. You cannot have 1 AND 0 at the
same time as argumentos of a boolean control as it can only assume either

one
state or the other.



  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 923
Default checkboxes

I have discovered that if you multiply the value of the check box by -1 ,
then you get a 0 or 1 returned.
If you are saving the value to the worksheet, then use

Range("A1").Value = Checkbox1.Value * -1

Cheers
Nigel

"mark" wrote in message
...
checkboxes, when linked to cells, store either TRUE or
FALSE in them...

Boolean...

is it possible to set the default item stored to 1 and 0 ,
so that a PivotTable could work with the sums better?

I can run through and change the TRUE/FALSE to 1/0 if I
need to, but it will just take extra time.

Thanks.



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 196
Default checkboxes

If you are saving the value to the worksheet, then use
Range("A1").Value = Checkbox1.Value * -1


looks like something along that line is what I'll have to
do, though I may just do it in a summarization
spreadsheet, instead of actually using the code in the
evaluation form that this is in.

thanks.
Mark
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
Checkboxes Elaine Excel Discussion (Misc queries) 6 August 20th 09 01:41 AM
Checkboxes stretch Excel Worksheet Functions 4 September 14th 07 12:36 PM
Checkboxes and Other cmk18[_3_] Excel Programming 1 April 5th 04 05:09 AM
checkboxes marksuza[_3_] Excel Programming 3 December 11th 03 03:19 PM
Checkboxes Tom Ogilvy Excel Programming 0 August 11th 03 05:45 PM


All times are GMT +1. The time now is 03:24 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"