![]() |
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 |
#1
|
|||
|
|||
![]()
Is there a way to create a rule that would save an email as a .txt file?
|
Ads |
#2
|
|||
|
|||
![]()
Am Tue, 22 Aug 2006 12:31:03 -0700 schrieb Maggie Helton:
You can create a run-a-script-rule and call this sample: Public SaveAsText(Mail as Outlook.MailItem) Dim Path as String Dim File as String Path = "d:\" File = Mail.Subject & "_" & Mail.ReceivedTime ReplaceCharsForFileName File, "_" Mail.Save File, olTXT End Sub Private Sub ReplaceCharsForFileName(sName As String, _ sChr As String _ ) ' Ersetzt in Dateinamen unerlaubte Zeichen sName = Replace(sName, "/", sChr) sName = Replace(sName, "\", sChr) sName = Replace(sName, ":", sChr) sName = Replace(sName, "?", sChr) sName = Replace(sName, Chr(34), sChr) sName = Replace(sName, "", sChr) sName = Replace(sName, "", sChr) sName = Replace(sName, "|", sChr) End Sub If youŽd get two messages with the same subject and the same time then the second would overwrite the first one. -- Viele Gruesse / Best regards Michael Bauer - MVP Outlook -- www.VBOffice.net -- Is there a way to create a rule that would save an email as a .txt file? |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to attach .txt file to all outgoing emails? | [email protected] | Outlook - General Queries | 1 | August 17th 06 04:22 PM |
parce txt doc to become a merge doc with email address. | NannaLuvs | Outlook - Using Forms | 0 | July 12th 06 05:26 PM |
last string in txt file | Leech | Outlook and VBA | 1 | February 10th 06 08:13 AM |
Problem with saving .txt attachement | norhaya | Outlook and VBA | 4 | January 12th 06 10:20 AM |
Problem with saving .txt attachement | Michael Bauer | Outlook and VBA | 3 | January 11th 06 09:22 AM |