View Single Post
 
Old 04-14-2015, 10:41 AM
shawnhet shawnhet is offline Windows 7 32bit Office 2013
Novice
 
Join Date: Apr 2015
Posts: 2
shawnhet is on a distinguished road
Default Problem with Word Mail Merge VBA - Outlook Object Library not recognized

Hi everyone,

I am having a problem with the email merge macro
Sub emailmergewithattachments() now that I've upgraded to Office 2013.

I keep getting the Compile Error: User-Defined type not defined for the following line in the macro.

Dim oOutlookApp As Outlook.Application

Typically, for this macro to work one needs open the VB Editor and get it to recognize the Microsoft Outlook 15.0 Object Library by checking that box under Tools >> References and hitting OK.

However, this does not do the trick for Word/Outlook 2013 apparently. This error persists even after the above mentioned box is checked.

I'm hoping that someone can help me with this. That macro is super useful for what I am doing.

Does anyone have any ideas what might be causing the problem?

Thanks a lot!

Shawn
Reply With Quote