Greetings all
I am having a bit of difficulty with getting a sumproduct function to work in a macro. The range is variable in length, so this is how I have entered the formula:
The variable lrow has been defined previously and the formula works when typed in highlighting the ranges, but the macro crashes when it tries to execute the formula line.![]()
Range("A" & lrow + 2)= "Total Formula" Range("C" & lrow +2).formula= _ "=sumproduct((M12:M"& lrow"),(Q12:Q"& lrow"))"
I could go back and use a helper column if necessary, but I would really prefer to do it in cell.
Thanks for taking a look at the problem
Bookmarks