Hi -
I'm working with a large-ish (~9000 row) spreadsheet and there is VBA code that uses it and runs Range.Find on entire columns in the sheet.
Using .Find on the column with xlValues takes about 40 seconds to find the cell, whereas using xlFormulas is virtually instantaneous. This would make sense if the range (and maybe the sheet?) had heavy use of formulas in it, but it doesn't have ANY formulas. Also, Application.Calculation is set to xlCalculationManual so it should not be recalculating anything anyway. I noticed the screen seems to flash several times while running the process with xlValues, almost like it's reloading the same document multiple times. It does not do this with xlFormulas.
This makes a process take 2 hours with xlValues and a couple minutes with xlFormulas.
Has anybody else had this happen and can recommend anything? I'm stumped.
Thanks!
I'm working with a large-ish (~9000 row) spreadsheet and there is VBA code that uses it and runs Range.Find on entire columns in the sheet.
Using .Find on the column with xlValues takes about 40 seconds to find the cell, whereas using xlFormulas is virtually instantaneous. This would make sense if the range (and maybe the sheet?) had heavy use of formulas in it, but it doesn't have ANY formulas. Also, Application.Calculation is set to xlCalculationManual so it should not be recalculating anything anyway. I noticed the screen seems to flash several times while running the process with xlValues, almost like it's reloading the same document multiple times. It does not do this with xlFormulas.
This makes a process take 2 hours with xlValues and a couple minutes with xlFormulas.
Has anybody else had this happen and can recommend anything? I'm stumped.
Thanks!