Computing.Net > Forums > Office Software > Slow Excel Automation

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Slow Excel Automation

Reply to Message Icon

Name: Brian
Date: August 25, 2003 at 08:12:23 Pacific
OS: Win 2K Pro
CPU/Ram: 864 MHz/256 Meg
Comment:

Hi:

I use Excel automation in two Visual Basic Applications to create reports as Excel workbooks. The problem is that on some machines, it can be very slow to generate these workbooks. I am running Windows 2K Pro and Office 2000, and I have never noticed this problem myself as the developer. However different users who use different Windows/Office configurations report that there is a long delay at times when generating these reports. It seems that usually they are slow to generate on Windows XP. It seems as if there is a very long delay at the first in loading Excel before the report even starts to generate.

I have spent a great deal of time researching on this trying to find a solution. I have used all of the "optimization techniques" in my code that people have suggested, but this has not helped.

I do not know what is happening, but it appears that the major slow down may occur when changing the margins or page orientation when certain printers are the default printer.

I really need to find out why it is fast usually in Windows 2000 but slow in Windows XP. I can provide any further information anyone requires to find a solution. Please help! My e-mail is Brian149@cox.net. Thanks in advance.



Sponsored Link
Ads by Google

Response Number 1
Name: A Certain TH
Date: August 25, 2003 at 15:40:06 Pacific
Reply:

Was the code written, or recorded? Only if it was recorded, then any 'print setup' stuff you do can explode to thousands of unneccessary lines of coee. Say these were recorded by 2000, then XP may need to do further translation on them to make its own sense of them.

Other things to check include calculations being on or off. This can make a whizzy macro die on some machines. If you aren't sure, and if they aren't neccessary, then have your macro turn them off (and back on at the end if need be).

Tom


0

Response Number 2
Name: Brian
Date: August 26, 2003 at 07:13:58 Pacific
Reply:

I am not sure what you mean by "recorded". My VB applications are creating the workbooks "on the fly". No templates are being used. I do very few calculations at all in these reports. At most I do a summation of the values in a column. So I would not think that changing the calculation value would cause the kind of slow down we are seeing on some workstations. I have tested this before and it has seemed to make no difference. I will add it to my code because I am desparate to find a solution, but I do not think this is it.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Normal.dot for group Opening an office file



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Office Software Forum Home


Sponsored links

Ads by Google


Results for: Slow Excel Automation

MS Excel Automated Printing www.computing.net/answers/office/ms-excel-automated-printing/4683.html

Run Excel Macro as Automated Task on Server www.computing.net/answers/office/run-excel-macro-as-automated-task-on-server/9661.html

Excel 2000 Premium slow file opens www.computing.net/answers/office/excel-2000-premium-slow-file-opens-/3787.html