Mrrrr's Forum (VIEW ONLY)
Un forum care ofera solutii pentru unele probleme legate in general de PC. Pe langa solutii, aici puteti gasi si alte lucruri interesante // A forum that offers solutions to some PC related issues. Besides these, here you can find more interesting stuff.
Lista Forumurilor Pe Tematici
Mrrrr's Forum (VIEW ONLY) | Reguli | Inregistrare | Login

POZE MRRRR'S FORUM (VIEW ONLY)

Nu sunteti logat.
Nou pe simpatie:
sexy_andrea2006 pe Simpatie
Femeie
22 ani
Sibiu
cauta Barbat
22 - 48 ani
Mrrrr's Forum (VIEW ONLY) / Tutoriale si Ghiduri Utile // Tutorials and useful guides / [OUTLOOK] Save All Received Emails to Local Folder Moderat de TRaP, TonyTzu
Autor
Mesaj Pagini: 1
TRaP
Moderator

Inregistrat: acum 6 ani
Postari: 748
Source:

You must add the following code into ThisOutlookSession (not as a module).

Open Outlook and press ALT+F11 to open Visual Basic, then click on + for Microsoft Outlook Objects, double click on ThisOutlookSession and paste the following text:

Private Sub Application_ItemSend(ByVal Item As Object, Cancel As Boolean)
    Call SaveACopy(Item)
End Sub

Sub SaveACopy(Item As Object)
    Const olMsg As Long = 3

    Dim m As MailItem
    Dim savePath As String

    If TypeName(Item) <> "MailItem" Then Exit Sub

    Set m = Item

    savePath = "D:\Test3\"  '## Modify as needed
    savePath = savePath & Format(Now(), "yyyy.mm.dd__hh-NN-ss ") & m.Subject
    savePath = savePath & ".msg"

    m.SaveAs savePath, olMsg

End Sub


More info and options:


pus acum 6 ani
   
Pagini: 1  

Mergi la