0
It is correct that I concatenate a variable to an Excel formula?
Excel complains at concatenation closure:
Sheets("FATURA").Select
Dim variavel As Double
variavel = InputBox("Digite Valor da Tarifa caso nao souber Digite 0,35")
MsgBox ("Valor sem desconto: " & variavel)
Range("Z2:Z" & Range("I1048576").End(xlUp).Row).Formula = "=RC[-1]&IF(RC[-2]< " &variavel& ,""M"",""O"")"
I tried to format your code, but I have no idea if it’s right. You can click [Edit] and format it.
– Jéf Bueno