Hi All,
I have tried to copy over a macro from a different workbook that works absolutely fine, but when I pasted the code below into a module of my new workbook I get the error Compile error: User-defined type not defined on the line:
The macro prepares and populates a new email with specified text and part of the workbook pasted into the email. I don't understand why this worked perfectly well in the old workbook, but by transferring it into the new one it stops functioning? The full code is blow:
Bookmarks