Hi, its my first post in this forum.
The above code is giving me an error:

Dim Dias As Integer
Range("BE39").Select
Dias = ActiveCell.Value
Range("Y8:Y" & NLIN).FormulaR1C1 = "=RC[-1]/RC[-3]/Dias*31"

Range BE39 has a number
I want to rc[-1]/rc[-3] result divide by Dias value.

(Sorry about my english, not my main language)

Thank you