Home |
Search |
Today's Posts |
#1
Posted to microsoft.public.excel.programming
|
|||
|
|||
Slow Code
Hello gang -- I am writing an app in vb.net to manipulate some excel files.
the following code works fine on small files (1200 lines) but either takes forever or fails on large files (67000 lines). im using excel 2007. for each excel file, i create and instance of excel and leave open for saving purposes. All this code does is trim the sheet. AppExcel.Application.ScreenUpdating = False Dim rng As Excel.Range Dim wsh As Excel.Range wsh = AppExcel.Application.ActiveSheet.UsedRange For Each rng In wsh rng.Value = LTrim(rng.Value) Next rng AppExcel.Application.ScreenUpdating = True Any help is appreciated. |
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Forum | |||
help with some slow code | Excel Programming | |||
help with some slow code | Excel Programming | |||
Fast code in 2003 = agonizingly slow code in 2007 | Excel Programming | |||
Slow code when used as VBA code instead of macro (copying visible columns) | Excel Programming | |||
Slow code | Excel Programming |