dmurphy1991
New Member
- Joined
- Jan 10, 2014
- Messages
- 22
Hi,
i keep getting the above error when trying to run this last bit of my code:
Dim laddercount As Double
Dim x, y As Double
laddercount = Evaluate("COUNTA(R:R)-1")
For y = 19 To laddercount + 19
For x = 7 To x + laddercount
Cells(x, y).Select
Selection.FormulaArray = "=INDEX(arrayrange,SMALL(IF(arrayrange = (Range(y & ""$6"")),ROW(ladderrange)),ROW(Cells(x,x),2))"
Next x
Next y
Where the ranges have been pre-set further up in the code, can post full code if necessary.
Any ideas why it isn't working?
Many thanks
i keep getting the above error when trying to run this last bit of my code:
Dim laddercount As Double
Dim x, y As Double
laddercount = Evaluate("COUNTA(R:R)-1")
For y = 19 To laddercount + 19
For x = 7 To x + laddercount
Cells(x, y).Select
Selection.FormulaArray = "=INDEX(arrayrange,SMALL(IF(arrayrange = (Range(y & ""$6"")),ROW(ladderrange)),ROW(Cells(x,x),2))"
Next x
Next y
Where the ranges have been pre-set further up in the code, can post full code if necessary.
Any ideas why it isn't working?
Many thanks