I have a spreadsheet with several array formulas. They pull dates from another worksheet, so if there is no date available, the array formulas return a #DIV/0 error.
I am trying to make it so that if there is an error, it will say "N/a" instead of #DIV/0. Instead of adding IF(ISERROR(... before each array formula, I'm trying to do this in vba to avoid making my array formulas any longer than they already are.
The trouble I'm having is that I can't figure out how to define a variable for the formula check. This is what I have so far, but it's obviously not right since I'm getting an error:
Currently, vba highlights the line: "r = ActiveCell.FormulaArray" when I try to run the maco.
Can anyone help me untangle this one?
Thanks!
Bookmarks