Thank you all for your help on this!

p45cal: On the second code, can you explain to me what the offset does?, also thank you for the suggested sub edit for the reset values!