I tried the code below but it doesn't send my excel workbook with the new data into it for some reason, it send the older version back.
it will save the last saved version, save first, or, if you do not want to keep the changes, then use savecopyas, change attachment name to the name of the saved copy, then delete after sending