Application.OnKey "{DELETE}", ThisWorkbook.Worksheets("CSS_quote_sheet").Range("C11").Formula = "=IF(A11="""","""",IF(COUNTIF(Sheet2!$G$87:$DO$97,A11),""Public_holiday"",IF(WEEKDAY(A11)=1,""Sun"",IF(WEEKDAY(A11)=7,""Sat"",""Business_day_rate""))))"
Private Sub Worksheet_Change(ByVal Target As Range)
Application.OnKey "{DELETE}", ThisWorkbook.Worksheets("CSS_quote_sheet").Range("C11").Formula = "=IF(A11="""","""",IF(COUNTIF(Sheet2!$G$87:$DO$97,A11),""Public_holiday"",IF(WEEKDAY(A11)=1,""Sun"",IF(WEEKDAY(A11)=7,""Sat"",""Business_day_rate""))))"
Private Sub Worksheet_Change(ByVal Target As Range)
If Not Intersect(Target, Range("[color=red]YOUR CELL[/color]")) Is Nothing Then Exit Sub
Worksheets("CSS_quote_sheet").Range("C11").Formula = "=IF(A11="""","""",IF(COUNTIF(Sheet2!$G$87:$DO$97,A11),""Public_holiday"",IF(WEEKDAY(A11)=1,""Sun"",IF(WEEKDAY(A11)=7,""Sat"",""Business_day_rate""))))"
End Sub