[Migrated content. Thread originally posted on 16 September 2011]
I have a Net Express program that writes values to a spreadsheet and then reads a particular cell in the spreadsheet that contains the results of a formula. Occasionally the formula will have a divide by zero error because of some value or some other issue where the data may be bad. When this happens the program locks up or crashes, in either event it is a problem.Is there a way to identify this type of issue and not have the program crash? The code for reading the cell is as follows.
invoke ExcelObject "getCells" using by value 23
by value 1 returning Cell.
invoke Cell "getValue" returning Cell-value.
invoke Cell "finalize" returning Cell.
inspect Cell-value replacing all x"00" by " ".
move Cell-value to d-Ret-Value.
NormanG

