Thread: macro error
View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
x taol x taol is offline
external usenet poster
 
Posts: 101
Default macro error


Sub problem()
ActiveCell.FormulaArray = _
"=IF(ISTEXT(INDEX(I$1:I1,MAX(C2=$C$1:C1)*(D2=$D$1: D1)*(E2=$E$1:E1)*(F2=$
F$1:F1)*ROW($C$1:C1)))),0,INDEX(I$1:I1,MAX((C2=$C$ 1:C1)*(D2=$D$1:D1)*(E2
=$E$1:E1)*(F2=$F$1:F1)*ROW($C$1:C1))))+G2-H2"
End Sub

the upper source is error.
but, the upper array function is worked well in excel worksheet.

what's the problem?



*** Sent via Developersdex http://www.developersdex.com ***