Hello,
It seems to me that Worksheetsfunctions don't function at all when applied to an other excel object.
For example, while
Excel_Object.Workbooks(Bestandsnaam).Worksheets("Blad1").Range("J2:J10").Address
works properly, the next code
Application.WorksheetFunction.SumIf(Excel_Object.Workbooks(Bestandsnaam).Worksheets("Blad1").Range("J2:J10"), "<0")
simply does not work.
Can anyone confirm this, or am I doing something wrong here. (I actually hope the latter.) Thanks in advance.
Manuel Buys.
It seems to me that Worksheetsfunctions don't function at all when applied to an other excel object.
For example, while
Excel_Object.Workbooks(Bestandsnaam).Worksheets("Blad1").Range("J2:J10").Address
works properly, the next code
Application.WorksheetFunction.SumIf(Excel_Object.Workbooks(Bestandsnaam).Worksheets("Blad1").Range("J2:J10"), "<0")
simply does not work.
Can anyone confirm this, or am I doing something wrong here. (I actually hope the latter.) Thanks in advance.
Manuel Buys.