Common VB code for Outlook97 & outlook 2000 automation

M

mahesh

Hello All,

i have a code snippet to send mails using outlook 97
profile. i'm using objects like Outlook.Application,
Outlook.MAPIFolder,Folders,MailItem,NameSpace,Attachments .
....

as of now i'm early binding the objects by mapping the
Outlook object thru project --> references --> outlook 8
object.

as few of the client machines have outlook 2000, i'd like
to generalize the code for any available outlook object on
the client machine. i know i need to use createobject()
for all these objects but do not know the
correct "CLASSNAME.METHOD " combination for all above said
objects.

kidly help me in this regard ...

Thanx in advance
Mahesh
 

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