I have added a macro to attach a highlighted section of excel to an email as a pdf.
This was working perfectly in my test workbook. When I tried to add the same macro to my working workbook i got a "Compile Error: User-defined type not defined".
I thought it might have been just on my live workbook, but the attached gets the same issue.
What am I not seeing?
Bookmarks