![]() |
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. |
|
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]()
Hi,
I'm trying to find a way to display a warning box when users attempt to send attachments above a certain size. I have found some VBA code to achieve this from he http://www.vboffice.net/sample.html?...owitem&lang=en I can't, however, get it to work, I think this is because we are using Outlook 2002 (SP3) and this code is incompatible with that version. After some testing I've found that the line of code: lSize = oMail.Size always returns a value of zero. Can anyone point me in the right direction to amend this code so it works how I want it to. I've not programmed in VB for years so apologies in advance if this is obvious. Thanks, Jason |
Ads |
#2
|
|||
|
|||
![]() Call oMail.save first, then you can retrieve the Size property. -- Best regards Michael Bauer - MVP Outlook : Outlook Categories? Category Manager Is Your Tool : VBOffice Reporter for Data Analysis & Reporting : http://www.vboffice.net/product.html?pub=6&lang=en Am Wed, 20 May 2009 02:09:07 -0700 schrieb Jazsnap: Hi, I'm trying to find a way to display a warning box when users attempt to send attachments above a certain size. I have found some VBA code to achieve this from he http://www.vboffice.net/sample.html?...owitem&lang=en I can't, however, get it to work, I think this is because we are using Outlook 2002 (SP3) and this code is incompatible with that version. After some testing I've found that the line of code: lSize = oMail.Size always returns a value of zero. Can anyone point me in the right direction to amend this code so it works how I want it to. I've not programmed in VB for years so apologies in advance if this is obvious. Thanks, Jason |
#3
|
|||
|
|||
![]()
"Michael Bauer [MVP - Outlook]" wrote in news:g12yzbxfizy9
: Call oMail.save first, then you can retrieve the Size property. Thanks for that, I have the script working now. Really appreciate your help. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to configure Outlook to block 3MB attachment file size? | Mark | Outlook - Installation | 11 | January 7th 09 09:54 AM |
Delete based on Attachment Size (Item.Size)... | [email protected] | Outlook and VBA | 3 | August 27th 07 05:30 PM |
way to limit received attachment file size? | ArcticRadioOperator | Outlook - Installation | 1 | June 2nd 07 08:29 PM |
File attachment size limits | Gene Hora | Outlook Express | 7 | August 22nd 06 09:02 PM |
attachment more than 50 mb size | DOL | Outlook - General Queries | 2 | August 8th 06 09:08 AM |