![]() |
If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below. |
|
|
Thread Tools | Search this Thread | Display Modes |
#2
|
|||
|
|||
![]()
Since you want it to be saved automatically, you'll need an event
handler. See http://www.codeforexcelandoutlook.co...ck-event-code/ for starter code. To save the message, use the MailItem.SaveAs method. http://msdn.microsoft.com/en-us/libr...ffice.11).aspx Since the folder name is determined by the subject, you'll need to check the server for a folder with the same content as the subject, and create the folder if it doesn't exist. i.e. ' check if folder exists Dim fldr As String fldr = Dir("\\myserver\myemail\" & MailItem.Subject) If Len(fldr) = 0 Then ' folder doesn't exist, create it MkDir "\\myserver\myemail\" & MailItem.Subject End If ' save the msg to folder here --JP On Dec 20, 12:08*am, ROBBOLL wrote: Is there example code to do the following: You receive an email like: *TID(123) This is the subject The email goes to your inbox as usual, but since it's a "TID(" it moves it to its matching folder on the network: *\\myserver\myemail\TID(123)? Thanks for any code examples, methods, or suggestions. RBollinger |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Using "Rules" to copy incoming email into a folder. | Mark - outlook | Outlook and VBA | 2 | August 4th 07 02:24 PM |
Copy email before sending into a database | [email protected] | Outlook and VBA | 1 | July 3rd 07 04:26 PM |
After Sending Email: Save Copy of Message to Windows Folder | Ben | Outlook and VBA | 1 | March 25th 06 07:17 AM |
Outlook--Sending a Copy of a Message to a Specific Folder | [email protected] | Outlook - General Queries | 4 | March 5th 06 07:26 PM |
want to copy distribution list from incoming email to my contacts | mcdonn19 | Outlook - Using Contacts | 1 | January 9th 06 09:55 PM |