How Can I Add Outlook as a Reference in Excel VBA?

Anonymous
2023-05-11T19:16:20+00:00

I am trying to automate an email for an Excel spreadsheet. I am on a 2016 MacBook using version 16.72 of Excel. I have Outlook installed on my system and am logged in. When I try to run my script, I get an error of 'ActiveX can't create object'. When I look in my available references, Outlook is not an option. Is there any command I can run to get it added?

Microsoft 365 and Office | Excel | For business | MacOS

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
{count} votes

4 answers

Sort by: Most helpful
  1. Anonymous
    2023-05-11T20:43:46+00:00

    ActiveX controls are not allowed in Excel for Mac.

    0 comments No comments
  2. Jim G 134K Reputation points MVP Volunteer Moderator
    2023-05-12T14:39:42+00:00

    Hi Renee,

    Microsoft Outlook on Mac does not support Microsoft Visual Basic for Applications directly. Because there is no VBA in Mac Outlook, there's no way to reference it in the Excel VB Editor.

    If you can explain a bit more about your scenario, we can offer suggestions. You might be able to automate your scenario using Word's mail merge. Or, you might be able to use VBA to issue AppleScript commands that Outlook will comply with.

    0 comments No comments
  3. Anonymous
    2023-05-12T15:24:37+00:00

    Hi Jim,

    I am pulling information from two excel spreadsheets, total expenses per employee and emails from another worksheet. The email will be sent to each employee containing their total.

    So would it be best to do this automation on a Windows system? Everyone in the accounting department uses Windows anyway, I am the only one on a Mac.

    Thanks so much for the reply!

    0 comments No comments
  4. Jim G 134K Reputation points MVP Volunteer Moderator
    2023-05-14T18:15:08+00:00

    Hi

    This page explains how to send mail programmatically from Office for Mac https://www.macexcel.com/examples/mailpdf/

    0 comments No comments