473,386 Members | 1,823 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

excel vb size

i have an excel spreadsheet with embedded vb. it's amazingly huge
(600k to 900k).

as i put in minor edits to the code or forms, it gets bigger very
fast. for example, i added 2 buttons and about 5 lines of code for
each (copied from elsewhere in the program) and it grew by 50k! i
added a tab to a dialog element and moved a couple of controls from
one tab to another and it grew by 100k!

occasionally i'll make some tiny change ant it will shrink by 300k. i
assume it's done some cleanup or compress operation.

is there a way to force this cleanup when i want it so i can get the
smaller version for distribution?

thanks,
tom
san diego
Jul 17 '05 #1
3 3203

"Tom Wright" <tj*@wherever.com> wrote in message
news:ic********************************@4ax.com...
i have an excel spreadsheet with embedded vb. it's amazingly huge
(600k to 900k).

as i put in minor edits to the code or forms, it gets bigger very
fast. for example, i added 2 buttons and about 5 lines of code for
each (copied from elsewhere in the program) and it grew by 50k! i
added a tab to a dialog element and moved a couple of controls from
one tab to another and it grew by 100k!

occasionally i'll make some tiny change ant it will shrink by 300k. i
assume it's done some cleanup or compress operation.

is there a way to force this cleanup when i want it so i can get the
smaller version for distribution?

thanks,
tom
san diego


Save As.

900k no longer seems "amazingly huge" to me. It seems like all MS files
are big these days...
Jul 17 '05 #2
steve,

regretfully, Save As does not seem to be the ultimate solution. within
the last couple of days i've seen my save size vary randomly from 475k
to 950k even though i've been making no changes that should materially
affect the size. Save As took my current version from 657k to 655k,
quite far above 475k.

anyone have any further ideas?

tom

On Tue, 27 Jan 2004 18:25:18 -0800, "Steve Gerrard"
<no*************@comcast.net> wrote:

"Tom Wright" <tj*@wherever.com> wrote in message
news:ic********************************@4ax.com.. .
i have an excel spreadsheet with embedded vb. it's amazingly huge
(600k to 900k).

as i put in minor edits to the code or forms, it gets bigger very
fast. for example, i added 2 buttons and about 5 lines of code for
each (copied from elsewhere in the program) and it grew by 50k! i
added a tab to a dialog element and moved a couple of controls from
one tab to another and it grew by 100k!

occasionally i'll make some tiny change ant it will shrink by 300k. i
assume it's done some cleanup or compress operation.

is there a way to force this cleanup when i want it so i can get the
smaller version for distribution?

thanks,
tom
san diego


Save As.

900k no longer seems "amazingly huge" to me. It seems like all MS files
are big these days...


Jul 17 '05 #3
Not sure if VBA can use Control Arrays, but write a control array for the
buttons, maybe? And code it so they won't show up until they are needed? I
know it can be done in VB somehow, just not the actual execution of it.
Also, you could try writing the same code in VB (if you have it) and see
what the file size is there. If it's smaller and the other computer(s)
already has/have Excel, you might think of using OLE through VB instead of
strict VBA. Of course, that's a moot point if you don't have VB ....

Ken
un*****@hotmail.nospam.com

"Tom Wright" <tj*@wherever.com> wrote in message
news:i6********************************@4ax.com...
steve,

regretfully, Save As does not seem to be the ultimate solution. within
the last couple of days i've seen my save size vary randomly from 475k
to 950k even though i've been making no changes that should materially
affect the size. Save As took my current version from 657k to 655k,
quite far above 475k.

anyone have any further ideas?

tom

On Tue, 27 Jan 2004 18:25:18 -0800, "Steve Gerrard"
<no*************@comcast.net> wrote:

"Tom Wright" <tj*@wherever.com> wrote in message
news:ic********************************@4ax.com.. .
i have an excel spreadsheet with embedded vb. it's amazingly huge
(600k to 900k).

as i put in minor edits to the code or forms, it gets bigger very
fast. for example, i added 2 buttons and about 5 lines of code for
each (copied from elsewhere in the program) and it grew by 50k! i
added a tab to a dialog element and moved a couple of controls from
one tab to another and it grew by 100k!

occasionally i'll make some tiny change ant it will shrink by 300k. i
assume it's done some cleanup or compress operation.

is there a way to force this cleanup when i want it so i can get the
smaller version for distribution?

thanks,
tom
san diego


Save As.

900k no longer seems "amazingly huge" to me. It seems like all MS files
are big these days...

Jul 17 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ImraneA | last post by:
Hi there Many thanks to those people who contributed to this group, helped me greatly. Enclose, my code, hope it helps others :- Public Function Export_Excel_9(tbx1 As Variant, tbx2 As...
22
by: Howard Kaikow | last post by:
There's a significant problem in automating Excel from VB .NET. Reminds me of a problem I encountered almost 3 years ago that was caused by the Norton Auntie Virus Office plug-in. Can anybody...
1
by: mamun | last post by:
Hi All, I have an asp page that displays the results in Excel in the browser. It has about 40 columns and sometimes records can grow upto 1100. For small number of records I do not get any...
10
by: Esmael | last post by:
Hi to all, /*****************************/ OS-WIn XP SP2 VB6 SP6 /*****************************/ Is their anyone who can help me with this: Source code written on VB6.
7
Merlin1857
by: Merlin1857 | last post by:
Its great producing data for users to look at in your web pages and generally that is sufficient for their needs but sometimes you may want to supply your user with the data in a form they can...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
3
by: sejal17 | last post by:
hello Can any one tell me how to read multiple worksheets from a single excel file.I have stored that excel in xml file.so i want to read that xml that has multiple worksheet.And i want to store...
15
by: patf | last post by:
Hi - experienced programmer but this is my first Python program. This URL will retrieve an excel spreadsheet containing (that day's) msci stock index returns. ...
7
by: Chandru Thiyaga | last post by:
I have created data entry tool in excel for our daily shift report details for the whole year. But the excel size seems to be so BIG and it becomes slow in calculations & saving. Is that possible...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.