Share via

Adding Outlook Object library for MAC Excel 2016.

Anonymous
2016-10-10T12:45:11+00:00

I have a Excel macro that works fine on Windows. However when i try to run that same macro in OSX, it gives me the error that "Missing: Microsoft Outlook xx Object Library". 

I have tried adding reference for this but cannot find the library listed in the system. 

Kindly suggest

Microsoft 365 and Office | Excel | For home | Windows

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2017-08-03T08:43:48+00:00

I came across these lines somewhere and they work for me

        set myDate to current date

        set newAppointment to make new calendar event with properties {subject:theName, content:theContent, start time:myDate + 1 * hours, end time:myDate + (2 * hours)}

Was this answer helpful?

0 comments No comments

4 additional answers

Sort by: Most helpful
  1. Jim G 134K Reputation points MVP Volunteer Moderator
    2016-10-12T20:21:04+00:00

    You will find this site informative:

    Introduction to AppleScript Overview - developer.apple.com

    In Finder, within the Applications folder, dragging the Outlook icon and dropping it onto the Script Editor icon will reveal the AppleScript dictionary, which is roughly the equivalent of using the Object Browser in VBA.

    Was this answer helpful?

    0 comments No comments
  2. Anonymous
    2016-10-10T16:23:33+00:00

    Hi Tapish

    No, I never look for this, you must first see if this is possible with AppleScript and then you can make it work together with VBA. I can't promise that I have time soon to look at it.

    Was this answer helpful?

    0 comments No comments
  3. Anonymous
    2016-10-10T14:37:07+00:00

    Thanks for the suggestion Ron. BTW, do u have any examples for creating calendar appointments in a similar way, like taking rows from excel and adding then as appointments in outlook?

    All the examples mentioned in the link shared are for sending emails.

    Regards,

    Tapish Agnihotri

    Was this answer helpful?

    0 comments No comments
  4. Anonymous
    2016-10-10T13:58:53+00:00

    There is no object model for Outlook for the Mac

    I created some code that is maybe useful for you

    http://www.rondebruin.nl/mac/macmail/macoutlook2016.htm

    Was this answer helpful?

    0 comments No comments