Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
Discussion GroupsFormsForms ProgrammingQueriesModules / DAO / VBAReports / PrintingMacrosDatabase DesignSecurityConversionImporting / LinkingSQL Server / ADPMultiuser / NetworkingReplicationSetup / ConfigurationDeveloper ToolkitsActiveX ControlsNew UsersGeneral 1General 2
Access DirectoryToolsTutorialsUser Groups
Related Topics
SQL ServerOther DB ProductsMS OfficeMore Topics ...

MS Access Forum / Forms Programming / May 2007

Tip: Looking for answers? Try searching our database.

Compress Excel file after export

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
mpfohl@hotmail.com - 03 May 2007 21:55 GMT
I have a database where the user clicks a button and it exports the 8
tables to an excel file.  I've noticed that after the file is
exported, the excel file is bloated, but if i open the excel file and
resave it, the file size reduce by about half.

Is there some VB code I could use to programmatically compress the
excel file after export?

Another solution would be for me to export the tables to a csv file,
but after the export, I want the users to email the file to me and I
don't want them to have to attach 8 csv files to an email.  But if
there was a way to zip the 8 files together or bundle them in some
way, that'd be a solution.

Any thoughts are appreciated.
robert.waters - 05 May 2007 12:59 GMT
On May 3, 3:55 pm, mpf...@hotmail.com wrote:
> I have a database where the user clicks a button and it exports the 8
> tables to an excel file.  I've noticed that after the file is
[quoted text clipped - 11 lines]
>
> Any thoughts are appreciated.

Why dont you use automation to duplicate the manual process?  Open the
spreadsheet in code, save it, and see if that process exhibits the
same behavior.
mpfohl@hotmail.com - 06 May 2007 15:50 GMT
My database will use Visutal Studios to produce a runtime version to
run on a user's computer even if access isn't installed.  I'm worried
that if my code tries to open excel and they don't have excel
installed on their computer either, it may fail?  maybe this just
becomes a matter for trial and error.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.