Home |
Search |
Today's Posts |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I wish VBA were like that.
As a worksheet function =IF(TRUE,1,1/0) returns an unproblematic 1 but the VBA equivalent IIF(True,1,1/0) throws a divison by zero error. This renders the IIF() function much less useful than it could be, which might be one of the reasons that VBA programmers seem to not use it much. Gary''s Student wrote: If TRUE, then only the first argument gets evaluated. If FALSE, then the first argument gets skipped and the second argument gets evaluated. -- Gary's Student |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
Can the Excel cell fill color be changed using "IF" statements? | Excel Worksheet Functions | |||
Evaluate "nested-merge" function? | Excel Worksheet Functions | |||
Excel - Golf - how to display "-2" as "2 Under" or "4"as "+4" or "4 Over" in a calculation cell | Excel Discussion (Misc queries) | |||
Need more than 7 nested "IF" statements in Excel" | Excel Discussion (Misc queries) | |||
"Activeworkbook" function not valid when workbook embedded in Lotus Notes? | Excel Programming |