A Microsoft Outlook email forum. Outlook Banter

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

Go Back   Home » Outlook Banter forum » Microsoft Outlook Email Newsgroups » Outlook and VBA
Site Map Home Register Authors List Search Today's Posts Mark Forums Read Web Partners

Prevent sending Excel files as attachements



 
 
Thread Tools Search this Thread Display Modes
  #1  
Old January 13th 10, 07:32 AM posted to microsoft.public.outlook.program_vba
kurthh
external usenet poster
 
Posts: 1
Default Prevent sending Excel files as attachements

Hello

I use Outlook 2003 as my email program.
Unfortunately, I have sent some Excel files as an attachment, which
would not have been sent out.
Is it possible to use a macro to prevent Outlook from sending if the
email contains an Excel File

thanks

Kurt
Ads
  #2  
Old January 13th 10, 08:16 AM posted to microsoft.public.outlook.program_vba
Michael Bauer [MVP - Outlook]
external usenet poster
 
Posts: 1,885
Default Prevent sending Excel files as attachements



in the ItemSend event check the Attachments collection for the item. For
each attachment in that collection check the Filename property. If there's
one that ends with ".xls" or the like, set Cancel = True.

--
Best regards
Michael Bauer - MVP Outlook
Manage and share your categories:
http://www.vboffice.net/product.html?pub=6&lang=en


Am Tue, 12 Jan 2010 23:32:51 -0800 (PST) schrieb kurthh:

Hello

I use Outlook 2003 as my email program.
Unfortunately, I have sent some Excel files as an attachment, which
would not have been sent out.
Is it possible to use a macro to prevent Outlook from sending if the
email contains an Excel File

thanks

Kurt

 




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Prevent Outlook from sending an email with a blank Subject Line Collector Dave Outlook and VBA 3 November 8th 09 01:24 PM
prevent touching pst files michiel.perdeck Outlook - General Queries 5 August 5th 08 03:57 PM
Possible to prevent sending an email without a category? [email protected] Outlook - General Queries 5 July 27th 07 11:19 AM
Outlook XP - selecting default account when sending attachements via "sent to:" Immanentny Outlook - General Queries 0 February 20th 07 07:45 AM
how do you do you prevent outlook from sending copies Crisra13 Outlook - General Queries 1 November 17th 06 03:34 PM


All times are GMT +1. The time now is 11:35 PM.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.Search Engine Friendly URLs by vBSEO 2.4.0
Copyright ©2004-2025 Outlook Banter.
The comments are property of their posters.