
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!