HansV wrote:Wouldn't it be easier to select the e-mail in Outlook itself and run a macro to save the attachment?
Hans very, very destroyed!
I have maked a test with:
Set olItm = olFld.Items.Restrict("[ReceivedTime]='07/04/2011 10:19'")
and the code work perfect!
But if i use:
dteLastCheck ="07/04/2011 10:19"
Set olItm = olFld.Items.Restrict("[ReceivedTime]='" & dteLastCheck & "')
the code not found the email!!!!!!!!!!
peraphs is a prob with " ' in the string when encapsuled the var dteLastCheck ????
note:
dteLastCheck is dimensioned Date