Zum Inhalt springen
View in the app

A better way to browse. Learn more.

Fachinformatiker.de

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Outlook Anhänge speichern ...

Empfohlene Antworten

Hallo,

ich habe die Aufgabe in Outlook ein Script zu schreiben welches automatisch die Anhänge in einen bestimmten Ordner speichert.

Dieses Stellt an sich kein Problem dar, da man ja schongenügen Lösungen dazu im Netz findet, aber nun muss ich das für ein 2007 Outlook machen und dan fängt schon gleich das Problem an ...

Private Sub Application_NewMail()


    Dim Foldername As String

    Dim objIn As MAPIFolder

    Dim objNewMail As MailItem


    On Error Resume Next

    Set objIn = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox)

    For Each objNewMail In objIn.Items

        With objNewMail


            If .UnRead = True Then

                NumberOfMails = .Attachments.Count

                If NumberOfMails > 0 Then

                    Foldername = "C:\temp\ "

                    MkDir Foldername

                    For i = 1 To NumberOfMails

                        .Attachments.Item(i).SaveAsFile Foldername & "" & .Attachments.Item(i).FileName

                    Next i

                End If

            End If


        End With

    Next objNewMail

End Sub 

Und zwar kennt er schonmal nicht objNewMail, dieses hängt wohl damit zusammen das MailItem nicht kennt. Nun hat dazu wer eine konkrete Lösung? Oder noch besser ein Tutoral wo ich lerne wie ich genau für Outlook 2007 programmieren muss? Also das wäre richtig richtig gut ;)

Danke schonmal !

Archiv

Dieses Thema wurde archiviert und kann nicht mehr beantwortet werden.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.