hello
I want adding the formula from column D: F based on filled in column B
actually I use specific range b2: b100 but if there is dynamic way without change the range in column B every time when increase data it will be better.
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("b2:b100")) Is Nothing Then
var1a = Range("a" & Rows.Count).End(xlUp).Row
With Worksheets("EmployeeCosts")
.Range("d9:f" & var1a).Formula = "= IFERROR(HOUR(D9-$D$3)*60+MINUTE(D9-$D$3);"")"
End With
End Sub