Since it is difficult to check if code works on a picture, I would say to attach a workbook on which people can try their handy work before posting it.

BTW, try to be consistent. All Parameters have a space between the word and the number but not Parameter5.