Answer the question
In order to leave comments, you need to log in
Why are emails not correctly selected in Outlook when filtering the received date using Restrict?
Good afternoon!
In order to select letters by date of receipt, I use the following construction:
DT = Date - 1 'В качестве даты выставляем вчерашний день
sFilter = "[ReceivedTime]>='" & DT & "'" 'Формулируем выражение для фильтра
Set fld = Application.GetNamespace("MAPI").GetDefaultFolder(olFolderInbox).Items.Restrict(sFilter) 'Выбираем перечень объектов по фильтру
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question