R
Ross Culver
I've written a procedure to save attachments to a designate directory upon
receipt of an e-mail. I need to restrict the code to only those e-mails
coming in from (e-mail address removed) since I know the domain won't change but the
user might. I've tried the following:
1) Set myItems = myEmails.Restrict("[SenderEmailAddress] = '*TheXone.net'")
2) Set myItems = myEmails.Restrict("[SenderEmailAddress] = " & chr(42) &
'TheXone.net'")
3) Set myItems = myEmails.Restrict("right([SenderEmailAddress], 11) =
'TheXone.net'")
None worked. Can someone explain to me how to use wildcards in a restrict
method?
Thanks,
Ross
receipt of an e-mail. I need to restrict the code to only those e-mails
coming in from (e-mail address removed) since I know the domain won't change but the
user might. I've tried the following:
1) Set myItems = myEmails.Restrict("[SenderEmailAddress] = '*TheXone.net'")
2) Set myItems = myEmails.Restrict("[SenderEmailAddress] = " & chr(42) &
'TheXone.net'")
3) Set myItems = myEmails.Restrict("right([SenderEmailAddress], 11) =
'TheXone.net'")
None worked. Can someone explain to me how to use wildcards in a restrict
method?
Thanks,
Ross