hi
I try autofilling the formulas in specific ranges but it shows application defined or object defined error in this line
any help to fix it ,please ?
I try autofilling the formulas in specific ranges but it shows application defined or object defined error in this line
VBA Code:
.Range("C2:E2").Formula = strFormulas
Code:
Sub FillDown()
Dim strFormulas(1 To 3) As Variant
With ThisWorkbook.Sheets("Sheet1")
strFormulas(1) = "=IFERROR(HOUR(B9-$B$3)*30+MINUTE(B9-$B$3);"")"
strFormulas(2) = "=PRODUCT(A2:B2)"
strFormulas(3) = "=A2/B2"
.Range("C2:E2").Formula = strFormulas
.Range("C2:E11").FillDown
End With
End Sub