Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Programming VBA / May 2008

Tip: Looking for answers? Try searching our database.

Prompt for Move to Folder on Send

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jasoncw - 08 May 2008 21:10 GMT
Is there an easy way to prompt to which folder to move a sent email? I tried
creating a rule, and that will only allow you to define a specific folder. I
would like for Outlook to prompt which folder to move it upon sending.

TIA

Jason

Cross-post: http://vbaexpress.com/forum/showthread.php?t=19448
Sue Mosher [MVP-Outlook] - 08 May 2008 22:17 GMT
See http://www.outlookcode.com/codedetail.aspx?id=1173 
Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

> Is there an easy way to prompt to which folder to move a sent email? I tried
> creating a rule, and that will only allow you to define a specific folder. I
[quoted text clipped - 5 lines]
>
> Cross-post: http://vbaexpress.com/forum/showthread.php?t=19448
jasoncw - 09 May 2008 04:37 GMT
Sue, thank you very much. That accomplishes exactly what I needed.

Jason

> See http://www.outlookcode.com/codedetail.aspx?id=1173 
jasoncw - 12 May 2008 21:56 GMT
I spoke too soon. This appears to work fine when I wish to send items within
the same Outlook file. However, it does not appear to work when I select a
folder within a different Outlook data file.  Can the procedure be modified
to accomplish this?  Thanks.

Jason

> Sue, thank you very much. That accomplishes exactly what I needed.
>
> Jason
>
> > See http://www.outlookcode.com/codedetail.aspx?id=1173 
Sue Mosher [MVP-Outlook] - 12 May 2008 22:19 GMT
I haven't played with that code in quite a while. You should try taking out the check for whether the target folder is in the default store. If that doesn't work, you'll need to take a different approach, moving items after they land in the Sent Items folder. For that, you'd use the MAPIFolder.Items.ItemAdd event.

Signature

Sue Mosher, Outlook MVP
  Author of Microsoft Outlook 2007 Programming:
    Jumpstart for Power Users and Administrators
   http://www.outlookcode.com/article.aspx?id=54

>I spoke too soon. This appears to work fine when I wish to send items within
> the same Outlook file. However, it does not appear to work when I select a
[quoted text clipped - 8 lines]
>>
>> > See http://www.outlookcode.com/codedetail.aspx?id=1173 
elegaultZZZ@REMOVEZZZmvps.org - 08 May 2008 22:26 GMT
You can run a script with the rules wizard, which can call your procedure
that uses NameSpace.PickFolder to prompt the user where to move the message
to.

See:

How to create a script for the Rules Wizard in Outlook:
http://support.microsoft.com/kb/306108

Signature

Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault

> Is there an easy way to prompt to which folder to move a sent email? I
> tried
[quoted text clipped - 7 lines]
>
> Cross-post: http://vbaexpress.com/forum/showthread.php?t=19448
elegaultZZZ@REMOVEZZZmvps.org - 08 May 2008 22:39 GMT
Never mind - I wasn't paying attention very well and later realized you need
to do this on send...

Signature

Eric Legault [MVP - Outlook]
MCDBA, MCTS (Messaging & Collaboration, SharePoint Infrastructure, MOSS 2007
& WSS 3.0 Application Development)
Collaborative Innovations
-> Try Picture Attachments Wizard For Microsoft Outlook <-
Web: http://www.collaborativeinnovations.ca
Blog: http://blogs.officezealot.com/legault

> You can run a script with the rules wizard, which can call your procedure
> that uses NameSpace.PickFolder to prompt the user where to move the
[quoted text clipped - 16 lines]
>>
>> Cross-post: http://vbaexpress.com/forum/showthread.php?t=19448
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.