Attachment file size checker

J

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 here:

http://www.vboffice.net/sample.html?mnu=2&pub=6&smp=5&cmd=showitem&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
 
M

Michael Bauer [MVP - Outlook]

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:
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top