Microsoft Office Forums

Go Back   Microsoft Office Forums > >

Reply
 
Thread Tools Display Modes
  #1  
Old 03-18-2016, 10:15 PM
gmayor's Avatar
gmayor gmayor is offline Outlook rule to not send if attachment name doesn't match criteria Windows 10 Outlook rule to not send if attachment name doesn't match criteria Office 2016
Expert
 
Join Date: Aug 2014
Posts: 4,137
gmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud ofgmayor has much to be proud of
Default

OK if it is always a distribution list called BOB then surround the


Code:
If Item.Attachments.Count > 0 Then
    '...............
End If
with

Code:
If Item.To = "Bob" then
    If Item.Attachments.Count > 0 Then
        '...............
    End If
End if
However I don't see why this is necessary, as it will already flag a warning if the subject and the attachment don't match, whoever the message is sent to. Other attachments are unaffected. By adding the sender distribution list to the mix, you increase the danger of sending a message to the wrong person, rather than reduce it.
__________________
Graham Mayor - MS MVP (Word) (2002-2019)
Visit my web site for more programming tips and ready made processes www.gmayor.com
Reply With Quote
  #2  
Old 03-19-2016, 07:38 AM
SerenityNetworks SerenityNetworks is offline Outlook rule to not send if attachment name doesn't match criteria Windows 10 Outlook rule to not send if attachment name doesn't match criteria Office 2016
Advanced Beginner
Outlook rule to not send if attachment name doesn't match criteria
 
Join Date: May 2005
Location: Allen, Texas, USA
Posts: 37
SerenityNetworks
Default

Quote:
Originally Posted by gmayor View Post
...By adding the sender distribution list to the mix, you increase the danger of sending a message to the wrong person, rather than reduce it.
I'm not following. I would want this to be an "and". That is, the "To" AND "Subject" AND 'attachment name' must all match. Unless all three match up then it doesn't send.

Thanks,
Andrew
Reply With Quote
Reply

Tags
block attachment, block sending, outlook rule



Similar Threads
Thread Thread Starter Forum Replies Last Post
Using a VLOOKUP - when 2 rows match criteria it returns the first value in the cel only how 2 change djrobst Excel 4 10-28-2015 01:32 AM
Outlook rule to not send if attachment name doesn't match criteria Count unique values that match 2 or more criteria caeiro01 Excel 1 10-25-2015 02:34 AM
Outlook macro to check a value of a cell in an attachment and send an email based on that value ketangarg86 Outlook 13 03-25-2015 07:11 AM
Outlook rule to not send if attachment name doesn't match criteria Outlook doesn't send/receive anymore. Astacus Outlook 1 12-29-2012 03:40 PM
Outlook rule to not send if attachment name doesn't match criteria Vlookup or Index/Match - Multiple Criteria ruci1225 Excel 1 01-15-2012 07:31 AM

Other Forums: Access Forums

All times are GMT -7. The time now is 12:22 PM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, vBulletin Solutions Inc.
Search Engine Optimisation provided by DragonByte SEO (Lite) - vBulletin Mods & Addons Copyright © 2025 DragonByte Technologies Ltd.
MSOfficeForums.com is not affiliated with Microsoft