Relative Content

Tag Archive for vbafor-loopoutlook

VBA if condition of sender and receiver email address not working

I am writing a code to sort emails to different outlook folders. I need to set a condition for emails that are both sent and received only by members of my company, but a condition with “And” or similar conditions don’t sort any emails at all into the folder. Added to that, using only the recipient address condition gets emails sorted that don’t only have my company as recipient. I would be grateful for any advice.