Using Excel 2010
Hello,
The code below fill formula in BJ7 to BJ100 Where Lastrow = 100. I need the formula fill in the alternate row for example BJ7, BJ9, BJ11 and so on. Please help.
Regards,
Moti
Hello,
The code below fill formula in BJ7 to BJ100 Where Lastrow = 100. I need the formula fill in the alternate row for example BJ7, BJ9, BJ11 and so on. Please help.
VBA Code:
Sub FillFormula()
Dim Lastrow As Long
Lastrow = Range("C" & Rows.Count).End(xlUp).Row
Range("BJ7:BJ" & Lastrow).Formula = "=COUNTA(BM7:CF7)"
End Sub
Regards,
Moti