Make sure you have a reference set to Outlook in your project
references. FWIW it's better coding practice to fully qualify your
declarations. For example, Dim oMail As Outlook.MailItem and so on.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
> Hello,
> I am converting some existing VBA Code into a COM Add-In for use by
[quoted text clipped - 14 lines]
> TIA
> Stephen
StudioTwo - 23 Jan 2004 15:19 GMT
Ken,
Thank you so much. I had already tried using "Outlook.MailItem", but
no effect.
The reason i was having difficulty was due to the "project references"
(as you correctly pointed out).
In Office 2000 developer, these should be checked as follows:
VBA-> Tools -> References -> Outlook 9.0 Object Library
VBA-> Tools -> References -> Office 9.0 Object Library
Thanks for putting me right.
There whole thing now compiles - no idea if it will work though..
Thanks again (have a great weekend)
Stephen
> Make sure you have a reference set to Outlook in your project
> references. FWIW it's better coding practice to fully qualify your
[quoted text clipped - 6 lines]
> Author: Absolute Beginners Guide to Microsoft Office Outlook 2003
> Reminder Manager, Extended Reminders, Attachment Options