Based on codes I found on the website, I have created a macro to export a sheet from an Excel workbook as a PDF attached to an email. Based on other code I managed to create an