Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
How to use IfError in Excel 2007 VBA ?
Hello,
I am trying to figure out how to use the IfError function with Excel 2007 VBA. I have built a simple spreadsheet to test division by zero error handling. The following line either performs the division or throws an error 11 (division by 0) instead of returning 99. ActiveSheet.Cells(1, 3) = WorksheetFunction.IfError((ActiveSheet.Cells(1, 1) / ActiveSheet.Cells(1, 2)), 99) Any help would be appreciated. Thanks, Xavier |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
IFERROR in Excel 2007 | Excel Worksheet Functions | |||
Can IFERROR be used in Excel 2003 Compatibility View? | Excel Discussion (Misc queries) | |||
function =IFERROR LOOKUP works in excel 2007 not in excel 2003 | Excel Worksheet Functions | |||
IFERROR | Excel Worksheet Functions | |||
iferror | Excel Worksheet Functions |