I faced an interesting problem with my macro that parses log files (1GB).
Of course there are some settings as follows:
Application.ScreenUpdating = False Application.DisplayStatusBar = True Application.Calculation = xlCalculationManual Application.EnableEvents = False ActiveSheet.DisplayPageBreaks = False Application.DisplayAlerts = False Application.CutCopyMode = False
And also there is one general loop by log file lines with DoEvents within (to prevent excel screen from freezes).
The problem is the macro is very slow when my mouse pointer hovers over cells. Once the pointer moves away from the excel cells, the macro starts working 30 times faster! Any ideas why this happens and how to resolve the problem?
One proposed way is
application.visible=false
but it looks like excel crashes while the macro is running.