PC Review


Reply
Thread Tools Rate Thread

Dim Inspector

 
 
StudioTwo
Guest
Posts: n/a
 
      22nd Jan 2004
Hello,
I am converting some existing VBA Code into a COM Add-In for use by
Outlook 2000. I am using Office 2000 Developer Edition.

My routine saves the current message (in msg format) into a specific
directory on our network.

I was hoping to use my existing code, but the compiler refuses to
accept the following:

Dim MyInspector As Inspector
Dim MyItem As MailItem

"User Defined Type Not Defined" is the reason. Could anyone give me a
few pointers?

TIA
Stephen
 
Reply With Quote
 
 
 
 
Ken Slovak - [MVP - Outlook]
Guest
Posts: n/a
 
      22nd Jan 2004
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


"StudioTwo" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello,
> I am converting some existing VBA Code into a COM Add-In for use by
> Outlook 2000. I am using Office 2000 Developer Edition.
>
> My routine saves the current message (in msg format) into a specific
> directory on our network.
>
> I was hoping to use my existing code, but the compiler refuses to
> accept the following:
>
> Dim MyInspector As Inspector
> Dim MyItem As MailItem
>
> "User Defined Type Not Defined" is the reason. Could anyone give me

a
> few pointers?
>
> TIA
> Stephen



 
Reply With Quote
 
StudioTwo
Guest
Posts: n/a
 
      23rd Jan 2004
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



"Ken Slovak - [MVP - Outlook]" <(E-Mail Removed)> wrote in message news:<#KRl7#(E-Mail Removed)>...
> 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

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Inspector wrapper and Inspector close not fireing marcus.lambert@gmail.com Microsoft Outlook Program Addins 1 20th Jun 2008 01:53 PM
Help! Inspector.Close is fired before Inspector.Activate handler finishes Sergey Anchipolevsky Microsoft Outlook Program Addins 8 9th Feb 2006 09:51 AM
PC Inspector PattiChati Windows XP Help 5 17th Aug 2005 05:09 PM
Inspector wrapper and Inspector::OnClose event Henry Gusakovsky Microsoft Outlook Program Addins 2 27th May 2004 05:08 PM
Minimize an Inspector over another Inspector. George Microsoft Outlook Program Addins 4 27th May 2004 08:39 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:10 PM.