C
charlie oppenheimer
I'm sure there's something obvious I'm missing here.
I'm trying to use Outlook from within Word VBA. The declarations code
includes:
Dim oOutlook As Outlook.Application
Dim oMAPI As Outlook.NameSpace
Dim oFolder As Outlook.MAPIFolder
Dim oMailItem As Outlook.MailItem
Dim oRecipient As Outlook.Recipient
Set oOutlook = New Outlook.Application
I immediately get a compile error: "User Defined Data Type Not Defined"
Is there some way I need to be registering Outlook so VBA can find these
objects?
Thanks!
Charlie
I'm trying to use Outlook from within Word VBA. The declarations code
includes:
Dim oOutlook As Outlook.Application
Dim oMAPI As Outlook.NameSpace
Dim oFolder As Outlook.MAPIFolder
Dim oMailItem As Outlook.MailItem
Dim oRecipient As Outlook.Recipient
Set oOutlook = New Outlook.Application
I immediately get a compile error: "User Defined Data Type Not Defined"
Is there some way I need to be registering Outlook so VBA can find these
objects?
Thanks!
Charlie