M
Mark Drayton
Hi
I am trying to recreate a SUMPRODUCT equation into VBA to increas
speed, performance etc of a spreadsheet with a large amount of data.
My current equation is:
=SUMPRODUCT(('CURRENT MTH 03'!$A$5:$A$20244="Purchase Mino
Equipment")*('CURRENT MTH 03'!$J$5:$J$20244=$D250)*('CURRENT MT
03'!$E$5:$E$20244))
To make things more interesting I'm trying to write a macro that JUS
populates the value and not the equation.
I found this code on www.exceltip.com & am trying to enter the code i
the Bold text:
Sub Loop8()
Do
ActiveCell.Value = WorksheetFunction.*Average(ActiveCell.Offset(0
-1).Value, ActiveCell.Offset(0, -2).Value)*
ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell.Offset(0, 1))
End Sub
I'd really appreciate your help to get me out of this one.
Thanks
Mar
I am trying to recreate a SUMPRODUCT equation into VBA to increas
speed, performance etc of a spreadsheet with a large amount of data.
My current equation is:
=SUMPRODUCT(('CURRENT MTH 03'!$A$5:$A$20244="Purchase Mino
Equipment")*('CURRENT MTH 03'!$J$5:$J$20244=$D250)*('CURRENT MT
03'!$E$5:$E$20244))
To make things more interesting I'm trying to write a macro that JUS
populates the value and not the equation.
I found this code on www.exceltip.com & am trying to enter the code i
the Bold text:
Sub Loop8()
Do
ActiveCell.Value = WorksheetFunction.*Average(ActiveCell.Offset(0
-1).Value, ActiveCell.Offset(0, -2).Value)*
ActiveCell.Offset(1, 0).Select
Loop Until IsEmpty(ActiveCell.Offset(0, 1))
End Sub
I'd really appreciate your help to get me out of this one.
Thanks
Mar