I have these formulae in cells:
=IF(ISERROR(A1/B1),0,A1/B1)
=IF(ISERROR(C1/D1),0,C1/D1)
How can I create this in a VBA array?
For Example:
Dim DataArray() As Variant
DataArray = Cells(1,1).CurrentRegion.Value
Dim MyArray(1 To 10, 1 To 2) As Variant
Dim Counter As Integer
On Error...