Email in anderes Postfach schieben

  • Outlook

    Email in anderes Postfach schieben

    Hallo,

    wie kann ich eine Email in ein anderes Postfach verschieben?

    Bsp:

    Postfach 1
    -Posteingang //von hier
    -Junk
    -etc.

    Postfach 2
    -Posteingang // nach hier
    -etc.

    Mein bisheriger Code: (schließt email, und markiert als ungelesen)

    Visual Basic-Quellcode

    1. Sub CloseAndUnread()
    2. Dim myolapp As Outlook.Application
    3. Dim myinspector As Outlook.Inspector
    4. Dim myItem As Outlook.MailItem
    5. Set myolapp = CreateObject("Outlook.Application")
    6. Set myinspector = myolapp.ActiveInspector
    7. Set myItem = myinspector.CurrentItem
    8. myItem.Close olSave
    9. myItem.UnRead = True
    10. //Hier soll der Code stehen
    11. End Sub

    Dieser Beitrag wurde bereits 1 mal editiert, zuletzt von „ibot3“ ()