Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Microsoft Office > Excel VBA > Excel VBA
|
Excel VBA Discuss using VBA for Excel programming.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Excel VBA section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old August 27th, 2003, 01:23 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default VB-Excel Slow Sometimes

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 [email protected]. Thanks in advance.


 
Old October 2nd, 2003, 03:05 PM
Registered User
 
Join Date: Jun 2003
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!

Is the Windows variation (XP, 2000 etc) your only variable?
I ask because there is ample evidence that the page set up procedures for printing are considerably slower in Excel 2000 than they were in Excel 97. I have no experience of versions after Excel 2000. Could it be there is an issue here?

Alf
 
Old October 2nd, 2003, 08:19 PM
Registered User
 
Join Date: Aug 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I do not know all of the variables involved. The ones I do know are:

Windows Version
Office Version
Memory Capacity
Printer Driver associated with the default Printer

The Printer Driver associated with the default Printer seems to be most significant, although the other three variables may play a part. I really think the cause of this is changing the margins and orientation of the Excel worksheets. Some printer drivers can be dog slow when doing this.

By the way, the slowness I am noticing is just in pulling up the workbook on the monitor. It does not concern printing. I have not measured printing performance.

 
Old January 6th, 2005, 05:44 AM
Registered User
 
Join Date: Jan 2005
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Have you manage to get to the bottom of your problem. I am asking because I am encounting the similar problem as well.

Please help.

gin
 
Old January 7th, 2005, 03:29 AM
Registered User
 
Join Date: Dec 2004
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi Brian,

I can think of a couple of things that *may* be part of the problem.

I do most of my spreadsheet development over a network (I am running Win XP Pro) and sometimes opening a workbook can take 30secs+. (At other times it can be 1-2secs though) I don't much about network administration, but that could be something to look into. It also only seems to XP computers at my work with the problem.

Something else that could be contributing to the problem is anti-virus software that is scanning the workbooks as they are opened.

Hope this helps
Andrew





Similar Threads
Thread Thread Starter Forum Replies Last Post
Very Slow Excel Files vikashtiwari Excel VBA 9 April 22nd, 2008 01:56 PM
VB.net slow compared to vb6 jpwollman Pro Visual Basic 2005 8 January 17th, 2008 12:54 AM
XSLT to Excel transfer too slow JMnet ASP.NET 2.0 Basics 0 June 28th, 2006 02:40 PM
VB exe is very slow with XP SP2 mishi Pro VB Databases 5 November 7th, 2005 11:12 AM
VBA Word is very slow with vb.net preeti01 VB How-To 4 May 5th, 2005 05:01 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.