The =IfError Excel function is useful to handle errors that may come from formulas.
It will handle any of the common Excel # errors such as and allow you to substitute a value. This could prevent your VBA code from getting stuck. s = [=IfError(223/0"Error")] If the formula causes an error then the program can handle it. |