Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 1
Default problem with performance of excel macro, pls help

Thank you Paul Macoo and Tom Ogilvy for your advices. Unfortunately, i
do not have page breaks in my worksheet, and the worksheet/workbook is
saved when it is being created. i also noticed that it is not a memory
problem, as when i use the windows utility to check the performance of
the computer, it is the CPU processor that hits 100% all the time when
running the macro the second time (without restarting excel). It only
runs on normal CPU processor usage after I've restarted excel. But
even then, it will only run normally at acceptable speed the first time
after I've restarted it, not the consequent times.

Another problem i face with another macro that my colleague has written
is that excel crashes all the time, randomly, and before the macro is
being run. (It says "Excel.exe has generated a problem and will be
closed by Windows. You will need to restart the program.") It crash
the moment I do this: ToolsMacroMacro. This is suppose to bring up
the macro dialogue box for the me select which macro to run. This
happens absolutely random, and it only happen recently as this macro
grows in complexity and size. It's a poorly designed macro, with heaps
of loops that can run as many as 65,335 times, or scan to up 10,000
cells, with heaps of IF and Case statements everywhere. I know this
much, if the macro is poorly designed, it runs slowly and takes up a
lot of processing power and memory resources, but I am not sure why it
crash and kills excel.

Does anybody has any experience in this? Please advice.


---
Message posted from http://www.ExcelForum.com/

  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 15
Default problem with performance of excel macro, pls help

Lee,
This web page has some excellent tips on speeding up macros:
http://www.cpearson.com/excel/optimize.htm
Regards
Ian

"lee777 " wrote:

Thank you Paul Macoo and Tom Ogilvy for your advices. Unfortunately, i
do not have page breaks in my worksheet, and the worksheet/workbook is
saved when it is being created. i also noticed that it is not a memory
problem, as when i use the windows utility to check the performance of
the computer, it is the CPU processor that hits 100% all the time when
running the macro the second time (without restarting excel). It only
runs on normal CPU processor usage after I've restarted excel. But
even then, it will only run normally at acceptable speed the first time
after I've restarted it, not the consequent times.

Another problem i face with another macro that my colleague has written
is that excel crashes all the time, randomly, and before the macro is
being run. (It says "Excel.exe has generated a problem and will be
closed by Windows. You will need to restart the program.") It crash
the moment I do this: ToolsMacroMacro. This is suppose to bring up
the macro dialogue box for the me select which macro to run. This
happens absolutely random, and it only happen recently as this macro
grows in complexity and size. It's a poorly designed macro, with heaps
of loops that can run as many as 65,335 times, or scan to up 10,000
cells, with heaps of IF and Case statements everywhere. I know this
much, if the macro is poorly designed, it runs slowly and takes up a
lot of processing power and memory resources, but I am not sure why it
crash and kills excel.

Does anybody has any experience in this? Please advice.


---
Message posted from http://www.ExcelForum.com/


Reply
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 sub-par performance [email protected] Excel Discussion (Misc queries) 2 August 28th 08 05:45 PM
Macro performance John Excel Discussion (Misc queries) 0 February 2nd 07 05:06 PM
Excel performance calculation JE McGimpsey Excel Worksheet Functions 3 July 19th 06 03:37 AM
Excel Performance issue Sandy Excel Discussion (Misc queries) 0 September 14th 05 01:50 PM
Performance problem whem McAfee is running Carl L Excel Discussion (Misc queries) 0 August 24th 05 11:04 AM


All times are GMT +1. The time now is 07:29 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"