+ Reply to Thread
Results 1 to 2 of 2

Attachment Warning VBA Issues

  1. #1
    Registered User
    Join Date
    10-24-2014
    Location
    Alabama
    MS-Off Ver
    2013
    Posts
    1

    Attachment Warning VBA Issues

    I use the following code to warn any user when they are sending an email with an attachment. A msgbox asks them to make sure they are not sending sensitive info via email. The issue I have is when there is a string of replies/forwards and any of the senders have pictures in their signatures. This causes the intAttachCount to be higher than it should which in turn triggers a false attachment warning. Is there a way to only count the attachments on the current message?

    Here is the code:

    Please Login or Register  to view this content.
    Last edited by Fotis1991; 10-24-2014 at 08:47 AM. Reason: Pls use code tags around your codes in the future as per forum rules!

  2. #2
    Forum Contributor
    Join Date
    08-27-2006
    Posts
    136

    Re: Attachment Warning VBA Issues

    Rather than counting perhaps you can verify the extension of the attachment name, if any, against a list of extensions.

    For each attachment

    If first three characters after . in the name = xls or doc or ppt or pdf ...
    To mark "Solved" go to Thread Tools.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Replies: 3
    Last Post: 07-16-2014, 01:50 AM
  2. Data Validation List Issues/Sorting Issues
    By taylorbe in forum Excel Formulas & Functions
    Replies: 2
    Last Post: 03-12-2014, 09:53 AM
  3. No Attachment
    By bnwash in forum Suggestions for Improvement
    Replies: 4
    Last Post: 06-07-2013, 12:46 PM
  4. Attachment manipulation based on string in attachment
    By fterveen in forum Outlook Programming / VBA / Macros
    Replies: 1
    Last Post: 04-27-2012, 08:40 AM
  5. PDF as attachment
    By nuttycongo123 in forum Outlook Programming / VBA / Macros
    Replies: 12
    Last Post: 05-28-2011, 03:11 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1