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 / September 2005

Tip: Looking for answers? Try searching our database.

Moving message to a specific folder after sending it

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
BlondBabe - 16 Aug 2005 19:09 GMT
Hi,
I'm quite new with programming, so please be patiet :-)

I have created a form to be used on certain situations. I want that sent
messages based on this form will be automatically moved to a (fixed)
specified folder.  How do I define on the form that message will moved
automatically to specified folder after/on sending.
BlondBabe - 16 Aug 2005 19:41 GMT
Addition to this.

The destination folder is in another mailbox.  OL client version is 2003

"BlondBabe" kirjoitti:

> Hi,
> I'm quite new with programming, so please be patiet :-)
[quoted text clipped - 3 lines]
> specified folder.  How do I define on the form that message will moved
> automatically to specified folder after/on sending.
RobL - 21 Sep 2005 15:06 GMT
Hi Team,

I was searching for an answer to exactly this problem, and found this
lonely-looking old post.

Does the fact that there are no responses to this gent indicate that it is
generally agreed that there is no solution to this problem?  Perhaps the
answer is to be found elsewhere?

Any input would be appreciated.

Cheers,

Rob Levy
Signature

Software Support Engineer
i2 Ltd.

Alan - 22 Sep 2005 01:08 GMT
> Hi Team,
>
[quoted text clipped - 13 lines]
> Software Support Engineer
> i2 Ltd.

Hi Rob,

The original message has been removed from the MS server (it may exist
on others of course), and you have not supplied a link to it, so we
cannot really be sure what was discussed previously.

However, the following would seem to address the original subject
line:

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Private Sub olSentItems_ItemAdd(ByVal Item As Object)

   Item.Move
Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)

End Sub

+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+

Obviously you may wish to use a different destination that the inbox
as in this example.

HTH,

Alan.
RobL - 22 Sep 2005 10:00 GMT
Alan,

thanks a lot for your response.

That's exactly the solution I stumbled upon myself.  It actually works
really well.

Thanks for the post.

Rob
Signature

Software Support Engineer
i2 Ltd.

 
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.