You can use the integrated Help in the Outlook VBA Editor (press F1 with the
cursor inside some syntax you want help on), or read/download developer
documentation here:
http://msdn.microsoft.com/library/en...asp?frame=true
I also recommend exploring
http://www.OutlookCode.com.
--
Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
Try Picture Attachments Wizard -
http://www.collaborativeinnovations.ca
Blog:
http://blogs.officezealot.com/legault/
"JB" wrote:
> Thanks Eric. Is there a list of the objects somewhere (object name for the
> sender's email when i want to pull it back into the reply)? This is my first
> attempt at doing any of this, so some basic instructions would be great
> (website for rookies). I followed most of what you wrote does, just a matter
> of getting everything else in.
>
> Thanks.
> JB
>
> "Eric Legault [MVP - Outlook]" wrote:
>
> > You can do this by setting up hooks into the ItemAdd event for each of the
> > folders you need to monitor:
> >
> > Option Explicit
> > Dim WithEvents NewMailItems As Outlook.Items
> >
> > Private Sub Application_Startup()
> > Set NewMailItems =
> > Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items
> > End Sub
> >
> > Private Sub NewMailItems_ItemAdd(ByVal Item As Object)
> > 'THIS WILL FIRE FOR EVERY NEW E-MAIL; YOU CAN USE THE
> > 'Item OBJECT TO WORK WITH THE PROPERTIES OF THE E-MAIL MESSAGE
> >
> > Dim objMail As Outlook.MailItem
> >
> > If Item.Class <> olmail Then Exit Sub
> >
> > Set objMail = Item
> > 'Now you can do someting with the e-mail
> > End Sub
> >
> > Private Sub Application_Quit()
> > Set NewMailItems = Nothing
> > End Sub
> >
> > Just add more variables like NewMailItems, configure them during
> > Application_Startup, add ItemAdd event stubs for every Items collection, and
> > use the Item object passed in those events to reply to the message. If you
> > need to create a custom form stored in the Forms Library for the folder that
> > it is moved to, use Items.Add("IPM.Note.MyCustomForm") to get a handle to
> > that object.
> >
> > --
> > Eric Legault (Outlook MVP, MCDBA, old school WOSA MCSD, B.A.)
> > Try Picture Attachments Wizard - http://www.collaborativeinnovations.ca
> > Blog: http://blogs.officezealot.com/legault/
> >
> >
> > "JB" wrote:
> >
> > > Good afternoon all. I work in a post print shop, and have one person
> > > downloading mail on a Macintosh using entourage 10.1.0. I am setting up a
> > > new PC station to assist in the downloading, but have hit a snag.
> > >
> > > I need to send out customized forms (good art, bad art, missing PO, etc)
> > > based on which folder a message gets moved to. This is farily simple to
> > > setup in entourage, but hard to do based on the set of rules given by outlook
> > > 2000. I am not sure if I need to use a macro or a vba script. I do not have
> > > experience with either.
> > >
> > > Ideally, I would want it to work like this. When the user moves the message
> > > from the inbox to a folder, the script would recognize that move and reply to
> > > it using a template defined for that individual folder. I don't believe this
> > > would be too terribly hard to setup, I just have no idea where to start.
> > >
> > > Thanks,
> > > JB
> > >
> > >