UniMord
Active Member
- Joined
- May 6, 2002
- Messages
- 311
I'd like to count the number of errors in Selection.
The most straightforward way, it seems to me, would be to use a single array formula: {=SUM(0+ISERROR(SELECTION))}
This can be entered into a cell with Selection.FormulaArray, but I don't want to enter it into a cell, I need the value inside a subroutine.
In short: can an Array formula be used in VBA without actually entering it into a cell, or do I have to go the loop route? (Or are there other options?)
The most straightforward way, it seems to me, would be to use a single array formula: {=SUM(0+ISERROR(SELECTION))}
This can be entered into a cell with Selection.FormulaArray, but I don't want to enter it into a cell, I need the value inside a subroutine.
In short: can an Array formula be used in VBA without actually entering it into a cell, or do I have to go the loop route? (Or are there other options?)