Thank you Galaxiom! I tried to change it to Public Sub but that did not resolve the issue. Also, I tried to follow your explanation but I am not sure if I understand everything as I am quite a beginner. However, this is the exact code that I used: fontstuff.com/access/acctut21.htm and applied to...