@Admin,

I managed to make the code to run automatically at each change of cell B7, B2 and D2.
Once again thank you.