Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi
In VBA I set X = (J<15)*8 where J=10, so the statement is true, but "X" is set = to "-8" if True = 1 why is the 8 negative? |
#2
![]()
Posted to microsoft.public.excel.misc
|
|||
|
|||
![]()
Hi,
Because TRUE, in this case, equates to -1 Try this in the immediate window. ?int((10<15)) Cheers Andy Jeff wrote: Hi In VBA I set X = (J<15)*8 where J=10, so the statement is true, but "X" is set = to "-8" if True = 1 why is the 8 negative? -- Andy Pope, Microsoft MVP - Excel http://www.andypope.info |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how can I insert a macro into a boolean statement | Excel Worksheet Functions | |||
Comparing text and returning boolean values | Excel Discussion (Misc queries) | |||
Using boolean function for color fill | Excel Worksheet Functions | |||
Boolean Find | Excel Discussion (Misc queries) | |||
Boolean masks | Excel Worksheet Functions |