Solved

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

Posted on 2013-01-03
3
588 Views
Last Modified: 2013-01-03
Hi

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()
0
Comment
Question by:murbro
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 250 total points
ID: 38739475
Perhaps change the Imports statement to

Imports Outlook = Microsoft.Office.Interop.Outlook
0
 
LVL 83

Assisted Solution

by:CodeCruiser
CodeCruiser earned 250 total points
ID: 38740195
Or change

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

to

Public oOutApp As Application = New Application()
0
 

Author Closing Comment

by:murbro
ID: 38740228
thanks for the help
0

Featured Post

What is SQL Server and how does it work?

The purpose of this paper is to provide you background on SQL Server. It’s your self-study guide for learning fundamentals. It includes both the history of SQL and its technical basics. Concepts and definitions will form the solid foundation of your future DBA expertise.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Following basic email etiquette rules will help you write a professional email and achieve a good, lasting impression with your contacts.
Finding original email is quite difficult due to their duplicates. From this article, you will come to know why multiple duplicates of same emails appear and how to delete duplicate emails from Outlook securely and instantly while vital emails remai…
This Micro Tutorial demonstrates in Microsoft Excel how to consolidate your marketing data by creating an interactive charts using form controls. This creates cool drop-downs for viewers of your chart to choose from.
This video shows how to remove a single email address from the Outlook 2010 Auto Suggestion memory. NOTE: For Outlook 2016 and 2013 perform the exact same steps. Open a new email: Click the New email button in Outlook. Start typing the address: …

773 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question