• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 645
  • Last Modified:

VB.net Excel Add-In Type Outlook.Application not defined


In the following code I am getting the error: Type Outlook.Application not defined
I have added references to Microsoft.Office.Interop.Outlook and the Microsoft Office 12 Object Library

Imports Microsoft.Office.Interop.Outlook

Module modEmail

    Public oOutApp As Outlook.Application = New Outlook.Application()
Murray Brown
Murray Brown
2 Solutions
Rory ArchibaldCommented:
Perhaps change the Imports statement to

Imports Outlook = Microsoft.Office.Interop.Outlook
Or change

Public oOutApp As Outlook.Application = New Outlook.Application()


Public oOutApp As Application = New Application()
Murray BrownMicrosoft Cloud Azure/Excel Solution DeveloperAuthor Commented:
thanks for the help
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Free tool for managing users' photos in Office 365

Easily upload multiple users’ photos to Office 365. Manage them with an intuitive GUI and use handy built-in cropping and resizing options. Link photos with users based on Azure AD attributes. Free tool!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now