No idea, I just double checked the code and I don't get an error, can you upload your workbook and/or post the code you tried?

To add an attachment, when replying click go advanced and then attachments.