Home |
Search |
Today's Posts |
#12
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
As in many other languages, in VBA, when coercing numbers to a boolean
value, zero is evaluated as False, any non-zero value will be evaluated as True. A True value in VBA will be coerced to -1 in a math operation. In XL, the coercion is to +1. In article , "NickHK" wrote: Rob, The Excel v. VBA handling of booleans seems a bit screwy. Assuming A1=TRUE: ?range("A1").Value=true True ?-range("A1").Value=true False ?--range("A1").Value=true True ?10*range("A1").Value -10 ?10*--range("A1").Value -10 I can't see the logic for all the above to be valid. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
how do I change the date format from yyyymmdd to mm/dd/yyyy | Excel Worksheet Functions | |||
Change date from yyyymmdd to valid date format | Excel Discussion (Misc queries) | |||
How do I change date yyyymmdd to a Excel-supported date format? | Excel Worksheet Functions | |||
I need a yyyymmdd date format with no dashes | Excel Discussion (Misc queries) | |||
Is there an Excel date format as follows: yyyymmdd? | Excel Discussion (Misc queries) |