?
Solved

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

Posted on 2013-01-03
3
Medium Priority
?
618 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:Murray Brown
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
3 Comments
 
LVL 85

Accepted Solution

by:
Rory Archibald earned 1000 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 1000 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:Murray Brown
ID: 38740228
thanks for the help
0

Featured Post

Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

Question has a verified solution.

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

In Part II of this series, I will discuss how to identify all open instances of Excel and enumerate the workbooks, spreadsheets, and named ranges within each of those instances.
After seeing numerous questions for Dynamic Data Validation I notice that most have used Visual Basic to solve the problem. This suggestion is purely formula based and can be used in multiple rows.
This Experts Exchange video Micro Tutorial shows how to tell Microsoft Office that a word is NOT spelled correctly. Microsoft Office has a built-in, main dictionary that is shared by Office apps, including Excel, Outlook, PowerPoint, and Word. When …
To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
Suggested Courses

752 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