Macro VBA to create a contact from an email message 
Author Message
 Macro VBA to create a contact from an email message

Hello,

I'm trying to create a Marcro for Outlook 2000 that would
do the following:

Take email messages in a specific folder and create
contact records in a specific contact folder.  The new
contact would include their name and email address that it
would pull from the email header.

Any ideas on how to do this?  How would I then run this
macro?  Is this considered a custom action that I can use
with the Rules Wizard?  If not, how can I turn this into a
custom action?

Thanks for all your help and guidance!



Wed, 24 Dec 2003 10:17:23 GMT  
 Macro VBA to create a contact from an email message
http://www.slipstick.com/dev/olforms/bulkreply.htm contains a form/VBScript
sample of how to acquire the name and email address of items in a particular
folder.  With some slight modifications, you should be able to adapt it for
VBA with little to no trouble since the majority of the commands are the
same.

Running a macro can be done by selecting ALT + F8 | <macro> or you can
customize a toolbar that runs your macro when you are in the folder.  VBA
macros in Outlook 2000 can not be launched by the Rules Wizard.  If you want
your macro to fire when an event happens, you would have to catch the
Items.ItemsAdd event for a specific folder since the NewMail event doesn't
give a reference to what item is firing the event.

If you really have your heart set on it becoming a custom action, then you
would have to develop in C/C++ (or Delphi) using the Exchange extensions.
(FWIW, Outlook 2002 allows VBA macros to be called from the Rules Wizard.)


Quote:
> Hello,

> I'm trying to create a Marcro for Outlook 2000 that would
> do the following:

> Take email messages in a specific folder and create
> contact records in a specific contact folder.  The new
> contact would include their name and email address that it
> would pull from the email header.

> Any ideas on how to do this?  How would I then run this
> macro?  Is this considered a custom action that I can use
> with the Rules Wizard?  If not, how can I turn this into a
> custom action?

> Thanks for all your help and guidance!



Wed, 24 Dec 2003 21:18:00 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. create new contact from email message text

2. Macro message everytime I Create a contact

3. Email Messages using VBA or Macros!!

4. How to create an email message in a VBA procedure

5. Macro to send email and attachment to current contact

6. Turning Email Messages into Contacts

7. Usim VBA macro to import contacts from SQL database

8. Excel VBA macro won't Access Contact List

9. Can I access current email message from within email message

10. send email when contact is created

11. send an email when a contact is created

12. Create contacts from emails received during a specific time period

 

 
Powered by phpBB® Forum Software