VBA Variable dentro de la fórmula

Tengo el siguiente código

 ActiveCell.FormulaR1C1 = "=COUNTIF(R[-54]C[-14]:R[-54]C[90],RC[-4])"

Quiero reemplazar 90 con una variable "total", intenté esto pero no funcionó:

Dim total  as Integer
total=Inputbox("Enter a number")
ActiveCell.FormulaR1C1 = "=COUNTIF(R[-54]C[-14]:R[-54]C[ " & total & " ],RC[-4])"

Ty por tu ayuda

Respuestas a la pregunta(1)

Su respuesta a la pregunta