Yes I have put it in the sheet's code module. Do you think I should put it in a standard module?