View Single Post
  #1  
Old May 20th 09, 10:09 AM posted to microsoft.public.outlook.program_vba
Jazsnap
external usenet poster
 
Posts: 2
Default Attachment file size checker

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