LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default Excel - huge file sizes

I have experienced some problems with writting formulas
in visual basic for
application in Excel. I have been searching all over the
net and posting
questions on communities, but without any help. I haop
that you can help me.


We have a rather large spreadsheet which is automated
with visual basic
modules. The problem is when we write the formulas to the
spreadsheets in
the VB module the spreadsheet file ends up being VERY
large - usually
resulting in Excel crashing.

If the workbook with the formulas entered by VBA is
saved, closed, opened
and saved again the size of the file is about 1/20 of the
size before. Or if
the worksheets with the formulas that VBA wrote is copied
and then deleted -
again the file size is again normal. How can that be??
Are you aware of that
bug - and do you have a solution??

We have made a workarraound, but as soon as the
spreadsheets reach a certain
size it still causes Excel to crash. Any help would be
appriciated!!

You can test the problem easily by running this simple
code, saving the
workbook and notecing the size of the file. Then close
the file, open it
again and save and see how the file size is reduced.

Sub test()

For x = 1 To 100
For y = 1 To 100
With Worksheets("sheet1").Range("B2").Offset(x,
y)
.FormulaR1C1 = "= R[-1]C[-1]"
End With
Next y
Next x

End Sub


 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Excel Huge File. Dan Excel Discussion (Misc queries) 2 September 16th 08 07:42 AM
Excel File Huge with no data Tim Boudin Excel Discussion (Misc queries) 2 October 15th 07 05:02 PM
i need to import a huge txt file into excel Adelne Excel Discussion (Misc queries) 3 January 29th 07 02:11 AM
huge huge excel file... why? Josh Excel Discussion (Misc queries) 12 February 9th 06 09:55 PM
Excel File sizes and speed Impetus Excel Discussion (Misc queries) 1 November 15th 05 07:27 PM


All times are GMT +1. The time now is 05:08 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2004-2024 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"