Outlook .items.restrict using two filters
<p>I'm using a script that opens an email and downloads its attachment. Right now I can either choose to download the most recent attachment on the most recent email:</p>

<pre><code>Sub CTEmailAttDownload()

Const olFolderInbox As Integer = 6
'~~&gt; Path for the attachment
Const AttachmentPath As String = "C:\TEMP\TestExcel"

    Dim oOlAp As Object
    Dim oOlns As Object
    Dim oOlInb As Object
    Dim oOlItm As Object
    Dim oOlAtch As Object
    Dim oOlResults As Object

    Dim x As Long

    Dim NewFileName As String
    NewFileName = "Daily Tracker " &amp; Format(Now, "dd-MM-yyyy")

    'You can only have a single instance of Outlook, so if it's already open
    'this will be the same as GetObject, otherwise it will open Outlook.
    Set oOlAp = CreateObject("Outlook.Application")
    Set oOlns = oOlAp.GetNamespace("MAPI")
    Set oOlInb = oOlns.GetDefaultFolder(olFolderInbox)

    'No point searching the whole Inbox - just since yesterday.
    Set oOlResults = oOlInb.Items.Restrict("[ReceivedTime]&gt;'" &amp; Format(Date - 1, "DDDDD HH:NN") &amp; "'")

    'If you have more than a single attachment they'll all overwrite each other.
    'x will update the filename.
    x = 1
    For Each oOlItm In oOlResults
        If oOlItm.Attachments.Count &gt; 0 Then
            For Each oOlAtch In oOlItm.Attachments
                If GetExt(oOlAtch.FileName) = "xlsx" Then
                    oOlAtch.SaveAsFile AttachmentPath &amp; "\" &amp; NewFileName &amp; ".xlsx"
                End If
                x = x + 1
            Next oOlAtch
        End If
    Next oOlItm

End Sub

'----------------------------------------------------------------------
' GetExt
'
'   Returns the extension of a file.
'----------------------------------------------------------------------
Public Function GetExt(FileName As String) As String

    Dim mFSO As Object
    Set mFSO = CreateObject("Scripting.FileSystemObject")

    GetExt = mFSO.GetExtensionName(FileName)
End Function
</code></pre>

<p>By using <strong><code>'[Subject] ='</code></strong> I can download it by subject. </p>

<p>My question is, how can I put those two filters together so I can filter by Subject and ReceivedTime?</p>

<p>I tried binding them together with <strong><code>,</code>, <code>&amp;</code>, <code>+</code></strong> and so far I haven't been successful.</p>