Thank you for the help, it works. The only problem encountered is that now it does not recognize if it is a reference value, it makes the change only if it's entered manually.