Re: Enhancing filters with VBA - General Question
- From: Michael Bauer <mb@xxxxxxxx>
- Date: Sun, 19 Mar 2006 16:17:04 +0100
Am Sat, 18 Mar 2006 21:43:35 +0100 schrieb Martin Mewes:
Martin, that can be done with VBA.
You might use the ItemAdd event, which tells you about new items in a
folder. Then you get a substring of the subject by the functions InStr, Len,
Left, Right and/or Mid.
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
-- www.vbOffice.net --
Hi all,sure
this is the status:
Outlook 2003 is connected via IMAP to a remote Exchange (SBS 2000 - not
at the moment - can check on demand). While configuring Outlook createdtwo
PST files, one for the account itself which is not used at all and one forof
the disconnected IMAP folders.
This is a view on the folders (as good as I can).
Support (local not used)
\ Inbox
\ Send items
\ ...
IMAP (remote and used)
\Inbox
\Send items
\ ...
When the client connects to the server and checks for new messages it does
filter for "Ref.#" and moves all eMails where it can find this as a part
the subject line into another folder named "eMails with Ref.#"general.
Now, the user in front of the client needs this filter to be more dynamic
because there are several reference numbers and he needs to have folders
within "eMails with Ref.#" based on the number sequence.
Let me try to say it in simple terms.
a) eMail comes in with "Ref.#" in the subject
b) eMail is moved to "eMails with Ref.#"
c) Lookup the reference number
1. if a subfolder with the number does exist
-> move it there
2. if a subfolder with the number does not exist
-> create the subfolder
-> move it there
My question: Can such things be done with Outlook VBA?
Do you know any code sample or ready code which I can give him?
Do you know any tools which can directly work on IMAP-folders like this?
My knowledge in scripting is little as it comes to Visual Basic in
My programming skills are Perl and Bash, and I have already tried to dosome
things with Outlook VBA to absolutely no success at all as I am not usedto
work with IDEs at all..
Any help is greatly appreciated.
bis dahin / kind regards
Martin Mewes
Microsoft Certified System Administrator: Messaging
- References:
- Enhancing filters with VBA - General Question
- From: Martin Mewes
- Enhancing filters with VBA - General Question
- Prev by Date: Enhancing filters with VBA - General Question
- Next by Date: Can I automatically make appointments into tasks also?
- Previous by thread: Enhancing filters with VBA - General Question
- Next by thread: Can I automatically make appointments into tasks also?
- Index(es):
Relevant Pages
|