Hi
I can’t help much on this one as I haven’t really got a clue what that formula is doing, or what the workings or thoughts are behind it are: I am not good at all with formulas or the built in spreadsheet functions.
But
_ 1 In my
Excel 2007, the Evaluate and the formula in the following all give the same results.
Code: Select all
' http://www.eileenslounge.com/viewtopic.php?f=30&t=37732
Sub Testit()
Debug.Print Range("F1").FormulaArray ' =SUMPRODUCT(($C$5:$C$194=E1)*SUBTOTAL(103,OFFSET($C$5,ROW($C$5:$C$194)-ROW($C$5),0)))
Let Range("I1").FormulaArray = "=SUMPRODUCT(($C$5:$C$194=E1)*SUBTOTAL(103,OFFSET($C$5,ROW($C$5:$C$194)-ROW($C$5),0)))"
Dim vTemp
Let vTemp = Evaluate("=SUMPRODUCT(($C$5:$C$194=E1)*SUBTOTAL(103,OFFSET($C$5,ROW($C$5:$C$194)-ROW($C$5),0)))")
End Sub
_._______________________________________________
_2 A complete long shot in ignorance of really knowing what you are doing at all …
Could those
(External:=True) be giving problems?
_ I don’t understand at all why you have them,
and even if you do need them,
_ they might cause the final formula in the evaluate to be bigger than 255 characters,
or
_ if you have some strange non English worksheet names, then that might give issues:
StrangeExternalAddressWorksheetNamesIssues.JPG
I could be totally wrong here if Yasser's Excel and VBA somehow supports his strange characters: My German Excel and VBA does support the few German keyboard characters, ö ü ä , but I am not sure if VBA is capable of handling the more exotic squiggles of Yasser’s language. It certainly isn’t on any of my Excels or VBAs. But it might be in his: Clearly his Excel handles the language, but I don't know if that always means that VBA does as well.
Alan
You do not have the required permissions to view the files attached to this post.