Thema Datum  Von Nutzer Rating
Antwort
01.12.2018 14:56:02 ElTobi
NotSolved
01.12.2018 15:48:13 ugor
NotSolved
01.12.2018 17:25:37 ElTobi
NotSolved
02.12.2018 12:51:14 Gast55625
NotSolved
02.12.2018 15:28:12 ugor
NotSolved
02.12.2018 23:09:09 ElTobi
NotSolved
Rot E-Mails in Excel für bestimmten Zeitraum auslesen
02.12.2018 23:10:48 Gast86858
Solved
03.12.2018 01:27:08 ugor
NotSolved
03.12.2018 09:26:34 ElTobi
NotSolved
07.12.2018 09:24:26 ElTobi
NotSolved
07.12.2018 14:21:47 ugor
NotSolved
07.12.2018 15:35:31 ElTobi
Solved
03.12.2018 07:46:43 Gast2330
NotSolved

Ansicht des Beitrags:
Von:
Gast86858
Datum:
02.12.2018 23:10:48
Views:
1025
Rating: Antwort:
 Nein
Thema:
E-Mails in Excel für bestimmten Zeitraum auslesen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
Option Explicit
  
  
Public Sub PDFDOWN()
  
Dim olapp        As Object
Dim olName       As Object
Dim olHFolder    As Object
Dim olUFolder    As Object
Dim olUFolder2    As Object
  
  
Dim sSavePath    As String
Dim sSaveFolder  As String
Dim msg          As Object
Dim VonDatum As Date, BisDatum As Date
Dim olItemsCount As Long
  
Dim TimeStamp    As String
  
sSaveFolder = "C:\Users\Desktop\DOWNLOAD Outlook\"
  
Set olapp = CreateObject("Outlook.Application")
Set olName = olapp.GetNamespace("MAPI")
Set olHFolder = olName.Session.Folders("Funktionspostfach")
Set olUFolder = olHFolder.Folders("Posteingang")
Set olUFolder2 = olHFolder.Folders("1.01 in Bearbeitung")
  
  
VonDatum = CDate(InputBox("Bitte Datum des ersten zu betrachtenden Tages eingeben:", "Datumseingabe", Format(Now - 1, "DD.MM.YYYY")))
BisDatum = CDate(InputBox("Bitte Datum des letzten zu betrachtenden Tages eingeben:", "Datumseingabe", Format(Now, "DD.MM.YYYY")))
   
VonDatum = DateSerial(Year(VonDatum), Month(VonDatum), Day(VonDatum))
BisDatum = DateSerial(Year(BisDatum), Month(BisDatum), Day(BisDatum) + 1)
  
  
For olItemsCount = 1 To olUFolder.Items.Count
          With olUFolder.Items.Item(olItemsCount)
               
For a = olUFolder.Items.Count To 1 Step -1
With VonDatum <= .ReceivedTime And .ReceivedTime < BisDatum
Set msg = olUFolder.Items(a)
               
             If msg.Attachments.Count > 0 Then
               
                     For aa = msg.Attachments.Count To 1 Step -1
               
            Randomize Timer
strWurf = Int((99999999999# * Rnd) + 1)
  
                sSavePath = (sSaveFolder & msg.Attachments(aa).Filename & "[" & strWurf & "].pdf")
                msg.Attachments(aa).SaveAsFile sSavePath
              
            Next
            End If
       
       End With
         Next
       End With
          
    Next olItemsCount
      
For olItemsCount = 1 To olUFolder2.Items.Count
          With olUFolder2.Items.Item(olItemsCount)
               
For b = olUFolder.Items.Count To 1 Step -1
With VonDatum <= .ReceivedTime And .ReceivedTime < BisDatum
        Set msg = olUFolder2.Items(b)
             If msg.Attachments.Count > 0 Then
               
                         For bb = msg.Attachments.Count To 1 Step -1
              
            Randomize Timer
strWurf = Int((99999999999# * Rnd) + 1)
  
                sSavePath = (sSaveFolder & msg.Attachments(bb).Filename & "[" & strWurf & "].pdf")
                msg.Attachments(bb).SaveAsFile sSavePath
            Next
              
            End If
            
End With
Next
       End With
Next
  
End Sub


Ihre Antwort
  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen
Thema: Name: Email:



  • Bitte beschreiben Sie Ihr Problem möglichst ausführlich. (Wichtige Info z.B.: Office Version, Betriebssystem, Wo genau kommen Sie nicht weiter)
  • Bitte helfen Sie ebenfalls wenn Ihnen geholfen werden konnte und markieren Sie Ihre Anfrage als erledigt (Klick auf Häckchen)
  • Bei Crossposting, entsprechende Links auf andere Forenbeiträge beifügen / nachtragen
  • Codeschnipsel am besten über den Code-Button im Text-Editor einfügen
  • Die Angabe der Emailadresse ist freiwillig und wird nur verwendet, um Sie bei Antworten auf Ihren Beitrag zu benachrichtigen

Thema Datum  Von Nutzer Rating
Antwort
01.12.2018 14:56:02 ElTobi
NotSolved
01.12.2018 15:48:13 ugor
NotSolved
01.12.2018 17:25:37 ElTobi
NotSolved
02.12.2018 12:51:14 Gast55625
NotSolved
02.12.2018 15:28:12 ugor
NotSolved
02.12.2018 23:09:09 ElTobi
NotSolved
Rot E-Mails in Excel für bestimmten Zeitraum auslesen
02.12.2018 23:10:48 Gast86858
Solved
03.12.2018 01:27:08 ugor
NotSolved
03.12.2018 09:26:34 ElTobi
NotSolved
07.12.2018 09:24:26 ElTobi
NotSolved
07.12.2018 14:21:47 ugor
NotSolved
07.12.2018 15:35:31 ElTobi
Solved
03.12.2018 07:46:43 Gast2330
NotSolved