Home |
Search |
Today's Posts |
|
#1
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
I'm currently working on a programme with excel 2003 (communicates with
word...) Now it has 8 modules and 1 user form (with 576 controls, pretty big...), totally 161K after exporting. I noticed that when I open it, run the userform, close userform and save the excel file... The size of the excel file can vary from 329K to 427K. (cannot understand...) and when the file size is above 400K (approximately), if I run the program from a button on spreadsheet or from tools menu/Alt+F8, Excel will crush, need to be closed and want to sent a report to MS...Heck...But if I open the VBA editor (Alt+F11) then run it (in any possible ways), most of the times it works perfectly. So anyone knows what happened? Does it mean that file cannot be larger that 400K or one form can only have 575 controls? Or there are other reasons? Thanks.... |
#2
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
3 things to think of:
1. Does it have Option Explicit at the top of every module, class module and form module and with that does it compile? 2. Best to keep the size of any module (when exported) below 64 Kb. 3. Run the free VBA code cleaner: http://www.appspro.com/Utilities/CodeCleaner.htm Your file size shouldn't be a problem at all. I have an .xla that is over 5 Mb and works perfectly fine. RBS wrote in message oups.com... I'm currently working on a programme with excel 2003 (communicates with word...) Now it has 8 modules and 1 user form (with 576 controls, pretty big...), totally 161K after exporting. I noticed that when I open it, run the userform, close userform and save the excel file... The size of the excel file can vary from 329K to 427K. (cannot understand...) and when the file size is above 400K (approximately), if I run the program from a button on spreadsheet or from tools menu/Alt+F8, Excel will crush, need to be closed and want to sent a report to MS...Heck...But if I open the VBA editor (Alt+F11) then run it (in any possible ways), most of the times it works perfectly. So anyone knows what happened? Does it mean that file cannot be larger that 400K or one form can only have 575 controls? Or there are other reasons? Thanks.... |
#3
![]()
Posted to microsoft.public.excel.programming
|
|||
|
|||
![]()
RB Smissaert wrote:
3 things to think of: 1. Does it have Option Explicit at the top of every module, class module and form module and with that does it compile? 2. Best to keep the size of any module (when exported) below 64 Kb. 3. Run the free VBA code cleaner: http://www.appspro.com/Utilities/CodeCleaner.htm Your file size shouldn't be a problem at all. I have an .xla that is over 5 Mb and works perfectly fine. RBS Thanks... 1. All codes with option explicit from very beginning 2. All modules are smaller than 10K... The form is big (22K codes in ..frm file, but the .frx file is 96K... I don't know if here is the problem) 3. Code Cleaner need an admin account to install... Trying to get on now... I don't think size matters either... I once got an Excel program of 19M... Today I found if I save the file before running macro, it works perfectly. so adding ActiveWorkbook.Save is a naive solution... But I still want to know why Excel behaves like this...(Maybe it is a compiling error and Excel compiles codes when file saved?) Any hints? |
Reply |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Forum | |||
excel size limit? | Excel Discussion (Misc queries) | |||
looking for heat loss programme to size radiators | Excel Programming | |||
Cell size? Or size limit for Text data type? | Excel Discussion (Misc queries) | |||
Limit on Excel 97 file size? | Excel Programming | |||
Large Excel file size caused by a bug ? I really tried everything | Excel Discussion (Misc queries) |