View Single Post
  #1   Report Post  
Posted to microsoft.public.excel.programming
Michael A Michael A is offline
external usenet poster
 
Posts: 48
Default VBA Help, cant figure out why it dosn't work.

hello all, I was wondering If I could get a little help with this line, i
cant figure out why it wont work. I use the same code on a different workbook
with just the columns changed and it works fine..


j = ActiveSheet.Evaluate("=SumProduct(--(A1:A3000=" & _
CLng(CDate(nStuff)) & "),--(IsNumber(Find(""AH"",I1:I3000))))")

however, in the same macro, these work correctly:

i = Application.CountIf(.Columns(1), nStuff)
k = Application.SumIf(.Columns(1), nStuff, .Columns(11))

so I know that the nstuff value is correct.. any help would be greatly
appreciated. Thanks!