![]() |
|
![]() | ||
|
Subject:
Excel macro running slowly under Windows 2000 / Excel 2000
Category: Computers > Programming Asked by: prbt-ga List Price: $50.00 |
Posted:
07 Jul 2002 05:19 PDT
Expires: 11 Jul 2002 03:44 PDT Question ID: 37261 |
![]() | ||
|
There is no answer at this time. |
![]() | ||
|
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: alienintelligence-ga on 07 Jul 2002 07:13 PDT |
Any chance a virus program is running and is scanning the macro when it is run? If it only happens when run with the ASP script... could it be that? -AI |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: prbt-ga on 07 Jul 2002 13:15 PDT |
alienintelligence: No, no AV software. We *did* have Norton running, but it was switched off very early in the game. Thanks for replying, though. |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: alienintelligence-ga on 08 Jul 2002 17:45 PDT |
Ok, have you set up anything to monitor processes? Mainly what I'm wondering is, could the ASP script be holding something up, waiting for the Excel bit to finish? Also, have you tried running it on another computer? -AI |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: prbt-ga on 09 Jul 2002 00:51 PDT |
AI: No, we've not tried it on another 2000 box yet. That's our next step, though we've no reason to believe we won't get the same results. To explain the process a bit further: ASP opens Excel. It fills a blank spreadsheet with data from a database (thru ASP). Up to this point, Excel is getting 50-60% CPU. Then another spreadsheet is opened from the filing system, and an XLM macro from it is run - it's at this point we get 5-10% CPU. After the macro is run, Excel is closed. Now, the macro does things like opening up other spreadsheets, thousands of calculations, saving spreadsheets. Under NT/Excel 97, no problem, it gets 50-60% CPU. Under 2000, 5-10%. (If we run it 'standalone', not through ASP, we get 50-60%). So the problem looks to be ASP, but would ASP deliberately throttle the CPU time of a process it had no involvement in? Points: 1) There are no links across the network in any of the spreadsheets, it's all local. 2) Someone suggested opening up all the relevant spreadsheets FIRST in ASP, not letting the XLM macro do it - no difference. 3) We've run it under plain Excel 2000, then Service Release 1, and then Service Pack 2 - no difference. 3) Someone else suggested checking the regional settings - they WERE different between the NT and 2000 boxes, but changing them made no difference. What would be some good things to check out in perfmon to try and determine what's going on? |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: prbt-ga on 09 Jul 2002 00:53 PDT |
PS Just re-read your comment, I mis-understood it the first time: No, we've got nothing set up to monitor processes. |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: alienintelligence-ga on 10 Jul 2002 03:37 PDT |
I would trim ASP code. Make it bare bones. Leave in only the part that causes problems. See if it still happens with the slim code. Maybe there is something that resets in NT or idles but doesn't reset by default in 2000? If the code trim doesn't work, try launching a different app like notepad instead. Fill it with your data, or whatever part of it you can. See what happens to the processes then. Speaking of processes, I haven't downloaded this, Process Explorer, but it looks promising: http://www.sysinternals.com/ntw2k/freeware/procexp.shtml -AI |
Subject:
Re: Excel macro running slowly under Windows 2000 / Excel 2000
From: prbt-ga on 11 Jul 2002 03:44 PDT |
This has now been sorted. The problem? Excel.Application.Visible = False We changed it to 'True', and everything works fine now...! |
If you feel that you have found inappropriate content, please let us know by emailing us at answers-support@google.com with the question ID listed above. Thank you. |
Search Google Answers for |
Google Home - Answers FAQ - Terms of Service - Privacy Policy |