Is it possible to evaluate the sumproduct of a specific table row using VBA?
I know that "@" will evaluate the ActiveCell in the table correctly. I would like to evaluate a specific row in a table; let's use row 3 as an example.
MsgBox Evaluate("=SUMPRODUCT(ABS(tblMyTable[@[January]:[December]]))")
Evaluate specific row of table
-
- GoldLounger
- Posts: 2628
- Joined: 26 Jan 2010, 16:31
- Location: Southern California
Evaluate specific row of table
Regards,
John
John
-
- Administrator
- Posts: 78418
- Joined: 16 Jan 2010, 00:14
- Status: Microsoft MVP
- Location: Wageningen, The Netherlands
Re: Evaluate specific row of table
Like this:
Code: Select all
MsgBox Evaluate("=SUMPRODUCT(INDEX(ABS(tblMyTable[[January]:[December]]),3,0))")
Best wishes,
Hans
Hans
-
- GoldLounger
- Posts: 2628
- Joined: 26 Jan 2010, 16:31
- Location: Southern California