我試圖找到根據多個條件,但是我在運行下面的代碼我得到一個錯誤09" 「無法解析Condition.Error」的方式來過濾電子郵件的郵件。該ReceivedDate是2008年8月24日下午9點55分30秒如何篩選使用接收到的時間使用VBA
ReceivedDate = Me.cballocation.Column(1)
Sender = Me.cballocation.Column(2)
Subject = Me.cballocation.Column(0)
sFilter = "[subject] = '" & Subject & "' and DateValue[ReceivedTime]=" & Format$(ReceivedDate, "ddddd h:nn AMPM") & " and " & "[Sender]= '" & Sender & "'"
Set Ns = ol.GetNamespace("MAPI")
Set ml = Ns.Folders("MIMUMBAI").Folders("Inbox").Folders("Completed")
Set ml = ml.Items.Restrict(sFilter)
現在它拋出另一個錯誤。 「條件無效」 –