Hey guys,
Quite annoyingly someone at the office requested that I port a Macro that works seamlessly on Windows Excel to the Mac Office 2011 Excel now that it supports VBA.
The Macro I am porting essentially creates an email (using outlook in windows) copies some data out of the current workbook to the emails body, and CREATES AND SAVES a new modified workbook in the same directory as the current workbook attaches the new workbook to the email.
There are 3 things I am having trouble with and would be very happy if someone could help me with:
1. How should I deal with the saving aspect? Mac OSX has a way different directory structure than windows, so creating and saving has been breaking now matter how I have tried it?
2. How do I get data out of the workbook and into the body of email. Right now I just have a Sheets("Name").Range("XX") that just gets implanted into the body using the Excel VBA outlook mail handler?
3. How do I get the Mac default Mail Handler to open a new message with the required information?
I am posting my code below so you can pick it apart and tell me how you think I should adapt it Mac Office 2011 VBA!!
I had to trim the code up because of the character limits. If you have any questions please let me know!
![]()
Please Login or Register to view this content.
Bookmarks