You need to set a reference to the Microsoft Outlook Object Library in Tools>References...
I have some code:
When I run it I get error "User-defined type not defined excel vba Outlook.Application".
May you helpme to find the problem.VB:Sub SendEmails() Dim olApp As Outlook.Application Dim olMail As MailItem Set olApp = New Outlook.Application
Thanks in advance.
suggest that you actually read the Forum Rules that you agreed to.Originally Posted by Dw6853
You should not hijack threads, but start your own with a reference to the other one if you think it will help
Hope that Helps
New users should read the Forum Rules before posting
For free Excel tools & articles visit my web site
If I have helped you and you feel like putting your hand in your pocket please make a donation to Children in Need
RoyUK's Web Site
royUK's Database Form
Where to paste code from the Forum
There are currently 1 users browsing this thread. (0 members and 1 guests)