I am having difficulties with this code. I am trying to make it so that based on the value of cell D25
the value of F25
will change. I made the code in VBA (don’t know if this is actually the best way) and it is giving me a 424 runtime error: Object Required
. Could someone please point me in the right direction?
Sub Storage_vesel_Controle()
Sheets("NSR Form").Select
If Range("D25") = "1" Then Range("F25").Select.Value = "0"
If Range("D25") = "2" Then Range("F25").Select.Value = ".95"
If Range("D25") = "3" Then Range("F25").Select.Paste = ".98"
End Sub
Also, what do I need to add to make the code "always running"... in loop I think?