Google Answers Logo
View Question
 
Q: Outlook 2003 Macro ( No Answer,   2 Comments )
Question  
Subject: Outlook 2003 Macro
Category: Computers > Software
Asked by: malpern-ga
List Price: $4.00
Posted: 18 Aug 2004 20:32 PDT
Expires: 17 Sep 2004 20:32 PDT
Question ID: 389762
Can you suggest a way in Microsoft Outlook 2003 to filter selected
messages to a pre-specificed folders via a single keystroke command?
Answer  
There is no answer at this time.

Comments  
Subject: Re: Outlook 2003 Macro
From: dreamboat-ga on 19 Aug 2004 21:26 PDT
 
Because you did not tell us the name(s) of the folders, and we're
unaware of what type of folder they are, I'm going to quote a response
to a similar question that was answered by Microsoft Outlook MVP, Sue
Mosher at www.outlookcode.com to a similar question. The only
difference is that the person wanted to select multiple items, instead
of just one. I figure you'll want to select multiple too, even tho you
didn't state that.

--------quote----------

The building blocks you need to put this together: 

1) The ActiveExplorer.Selection collection to work with all selected items. 

2) To get a default folder, use Namespace.GetDefaultFolder. To get a
non-default folder, you need to walk the folder hierarchy using the
Folders collections or use a function that does that for you. See
http://www.outlookcode.com/d/code/getfolder.htm

3) To move items, use the Move method, but do it within a countdown
loop or a Do loop, not a For EAch ... Next loop.

4) See http://www.slipstick.com/outlook/toolbar.htm#macro to add your
macro to the toolbar.

If you're new to Outlook VBA macros, these web pages should help you get started: 

http://www.winnetmag.com/Articles/Index.cfm?ArticleID=21522&pg=1
http://www.outlookcode.com/d/vb.htm

------------end quote-------------
Subject: Re: Outlook 2003 Macro
From: dreamboat-ga on 20 Aug 2004 15:48 PDT
 
If you can clarify about the folders and their names, I can likely get
you exactly the VBA Code that you need.

Important Disclaimer: Answers and comments provided on Google Answers are general information, and are not intended to substitute for informed professional medical, psychiatric, psychological, tax, legal, investment, accounting, or other professional advice. Google does not endorse, and expressly disclaims liability for any product, manufacturer, distributor, service or service provider mentioned or any opinion expressed in answers or comments. Please read carefully the Google Answers Terms of Service.

If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you.
Search Google Answers for
Google Answers  


Google Home - Answers FAQ - Terms of Service - Privacy Policy