K
Kat
Hi,
I first would like to say I'm mostly a self taught access programmer with a
bit of excel and word thrown in for good measure. Therefore please excuse me
if I don't use standard terminology as I may have never learned it. My
latest employment has really streached my skills and I have learned a lot
from these boards both about specific things I needed at work and just
general good practice.
That said, I've been faced with a bit of a challenge. I need to automate
and send out several (talking 50-100) excel files via e-mail. I've worked on
the automation code and have that working fine. I have a MAPI set up that we
use to send e-mails that works great.
The problem is that because the excel files contain protection they can be
rather large with data in them. The template file is just short of 1Mb and
with data the test file I am using is 3.8Mb. I have tried trimming down the
files by deleting unnecessary cells in the template but this has only reduced
it to the size above because of some list boxes populated with data in hidden
cells.
I am worried that these files will get bounced by receiving e-mail clients
for being too large or the receiver not having enough mail box space.
Normally, if there weren't as many files, I would simply zip the files (using
the windows xp built in zip function) manually. This time we have to send
files to the entire organization so doing it manually would take me most of
the day.
Therefore my question is, is it possible to automate ziping of files from
within access VBA? Does anyone possibly have any examples of code on how to
do this? I assume it would have to be done with an API or shell call but the
aim is for the code to be fully automated not requiring any input from the
user (me).
Conversly if anyone knows this is definately not possible I'd appreciate
hearing that too so I can move on and just work on getting the zip files
ready to receive their information on the day this all needs to be run. (Yes
all the files need to go out on the same day, which is part of the problem)
I currently run Access 2003 on windows XP professional. Most of our
databases are saved as windows 2k databases.
Thanks again for any help anyone can give.
Kat
I first would like to say I'm mostly a self taught access programmer with a
bit of excel and word thrown in for good measure. Therefore please excuse me
if I don't use standard terminology as I may have never learned it. My
latest employment has really streached my skills and I have learned a lot
from these boards both about specific things I needed at work and just
general good practice.
That said, I've been faced with a bit of a challenge. I need to automate
and send out several (talking 50-100) excel files via e-mail. I've worked on
the automation code and have that working fine. I have a MAPI set up that we
use to send e-mails that works great.
The problem is that because the excel files contain protection they can be
rather large with data in them. The template file is just short of 1Mb and
with data the test file I am using is 3.8Mb. I have tried trimming down the
files by deleting unnecessary cells in the template but this has only reduced
it to the size above because of some list boxes populated with data in hidden
cells.
I am worried that these files will get bounced by receiving e-mail clients
for being too large or the receiver not having enough mail box space.
Normally, if there weren't as many files, I would simply zip the files (using
the windows xp built in zip function) manually. This time we have to send
files to the entire organization so doing it manually would take me most of
the day.
Therefore my question is, is it possible to automate ziping of files from
within access VBA? Does anyone possibly have any examples of code on how to
do this? I assume it would have to be done with an API or shell call but the
aim is for the code to be fully automated not requiring any input from the
user (me).
Conversly if anyone knows this is definately not possible I'd appreciate
hearing that too so I can move on and just work on getting the zip files
ready to receive their information on the day this all needs to be run. (Yes
all the files need to go out on the same day, which is part of the problem)
I currently run Access 2003 on windows XP professional. Most of our
databases are saved as windows 2k databases.
Thanks again for any help anyone can give.
Kat