User Defined Type Not Defined

D

DS

When I'm compiling my application I keep getting an message...
User Defined Type not Defined.

This is the Line...
Dim objOutlook As Outlook.Application

How do I correct this?
Thanks
DS
 
G

Guest

do you have a reference to the Outlook object library?
If you do , you may try
Dim objOutlook As New Outlook.Application
 
S

Stefan Hoffmann

hi,
When I'm compiling my application I keep getting an message...
User Defined Type not Defined.

This is the Line...
Dim objOutlook As Outlook.Application
When using early binding for objects, you need to set a reference to the
correct type library. So set a reference to Microsoft Outlook.


mfG
--> stefan <--
 
D

DS

Stefan said:
hi,


When using early binding for objects, you need to set a reference to the
correct type library. So set a reference to Microsoft Outlook.


mfG
--> stefan <--
That worked! Now I have another one for you. I'm using Steve Lebans
Background Color setter and I'm getting the same Error. Here is the line.
DS As New cDIBSection
This isn't on the list. What do I do?
Thanks
DS
 
S

Stefan Hoffmann

hi,
That worked! Now I have another one for you. I'm using Steve Lebans
Background Color setter and I'm getting the same Error. Here is the line.
DS As New cDIBSection
This isn't on the list. What do I do?
Asking Stephen himself works as he is normally answering his email. but
afaik you have to refrence it with to load .ocx/.mdb(e) option.


mfG
--> stefan <--
 
D

DS

Stefan said:
hi,


Asking Stephen himself works as he is normally answering his email. but
afaik you have to refrence it with to load .ocx/.mdb(e) option.


mfG
--> stefan <--
Stefan, Thank you, where is that option?
DS
 
D

Dirk Goldgar

DS said:
That worked! Now I have another one for you. I'm using Steve Lebans
Background Color setter and I'm getting the same Error. Here is the
line. DS As New cDIBSection
This isn't on the list. What do I do?

Which of Stephen's projects is that? What link did you get it from?

In my experience, Stephen's projects work perfectly if you (a) follow
the directions and (b) remember to import all the necessary modules into
your own database. You may want to check to make sure you did those
things.
 
D

DS

Dirk said:
Which of Stephen's projects is that? What link did you get it from?

In my experience, Stephen's projects work perfectly if you (a) follow
the directions and (b) remember to import all the necessary modules into
your own database. You may want to check to make sure you did those
things.

It works, it's just that when I compile I get an Error about user type
not defined.

From Lebans.com
ChangeMDIBackGround.zip

Thanks
DS
 
D

Dirk Goldgar

DS said:
It works, it's just that when I compile I get an Error about user type
not defined.

From Lebans.com
ChangeMDIBackGround.zip

In the module named READMEFIRST in that database, it gives the following
instructions:

<QUOTE>
' You must import the following modules into your own application in
' order for all of the functions contained in this project to work
properly.

' modChangeMDI
' modColorPicker
' cDIBSection
' clsCommonDialog

</QUOTE>

I think you must not have followed those instructions. Specifically, I
think you didn't import the class module, cDIBSection.
 
D

DS

Dirk said:
In the module named READMEFIRST in that database, it gives the following
instructions:

<QUOTE>
' You must import the following modules into your own application in
' order for all of the functions contained in this project to work
properly.

' modChangeMDI
' modColorPicker
' cDIBSection
' clsCommonDialog

</QUOTE>

I think you must not have followed those instructions. Specifically, I
think you didn't import the class module, cDIBSection.
Dirk, Right again. It's been awhile since I pulled the Code into my
program and I must have forgoten about the other modules. Thank you for
the reminder.
Thanks
DS
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

User-Defined type not defined 6
Email problem 3
Access ConcatRelated() Function Not Working 0
Compile error.. 3
Auto-enter a Subject in an Email Generated by Access 2
Compiler error 4
Access send mail from access 2010 6
command button to email form 4

Top