PC Review Forums Newsgroups Microsoft Outlook Microsoft Outlook VBA Programming Common VB code for Outlook97 & outlook 2000 automation

Reply

Common VB code for Outlook97 & outlook 2000 automation

 
Thread Tools Rate Thread
Old 19-09-2003, 07:43 AM   #1
mahesh
Guest
 
Posts: n/a
Default Common VB code for Outlook97 & outlook 2000 automation


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
  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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off