Using msoutl.olb

G

Grey

I am using MS Office XP to develope a VBA in excel. I need to interact with MS outlook, so I use the object library, msoutl.olb in the VBA. My problem is that can I deploy my VBA program using this object library file?? Is there any licenese I need to consider?? Because I found that some user are using different Office version, such as office 2000, office XP and office 2003. If I just copied the VBA to the user's machine without the object file, it did not work.
 
T

Tom Ogilvy

You need to remove the reference to outlook and use late binding. Your
declarations will have to be the generic object.

You will need to write you code so it is compatible with the lowest version
of outlook you will interact with.

You can't distribute the outlook object library and it won't work with other
versions of outlook anyway.

--
Regards,
Tom Ogilvy

I am using MS Office XP to develope a VBA in excel. I need to interact with
MS outlook, so I use the object library, msoutl.olb in the VBA. My problem
is that can I deploy my VBA program using this object library file?? Is
there any licenese I need to consider?? Because I found that some user are
using different Office version, such as office 2000, office XP and office
2003. If I just copied the VBA to the user's machine without the object
file, it did not work.
 

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

Top