troubleshooting Question

Excel macro runs extremely slow

Avatar of wlevy
wlevy asked on
Visual Basic Classic
7 Comments1 Solution427 ViewsLast Modified:
I inherited an Excel macro that loads, formats and saves a batch of about 150 Excel files.  It worked fine under Windows 98 / Office 97 but now under Windows XP / Office XP it runs extremely slow.

For each file, the macro loads the file(workbook) using Workbooks.Open (<filename>), then runs through an involved formatting routine, then saves and closes the workbook.  Stepping through the code with F8 I noticed that there is a noticeable delay as each formatting command is executed (Application.ScreenUpdate is set to False).

The user has stated that the process of formatting 150+ files is so slow under XP that it is unworkable (a file that took 15 seconds before might take five minutes now).  Any ideas on restoring this process to running fast?

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 7 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 7 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros