×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

For the best only

For the best only

For the best only

(OP)
I have a big excel file with a lot of macros.
This file is slow and the code is not too bad.
The interesting thing is that when we send Excel in background during an excel calculation (macro or other), for example if you active an explorer window, excel is "speedster".
Do you know the reson? Do you know if is possible to set this "excel status" with some computer settings?

RE: For the best only

(OP)
Screen update disabled and Manual calculation

RE: For the best only

Nice tip, Katmar!  I had one excel macro that basically filled out an entire spreadsheet cell by cell.  Time to run it went from about 45s to 5s by adding that one line!  Have a star!

RE: For the best only

(OP)
Unfortunatelly my problem is not realed to this function.
In any case, if you lock the calculation too (application.calculation=xlmanualcalculation) you can reduce more this lenght of time!

RE: For the best only

Have you considered putting the macros in an Add-In file that loads when you load your file?

Are you sure there's not a badly coded loop in one of the macros?

How much RAM does your computer have? If you go to the Task Manager, is the processor maxed out?

RE: For the best only

(OP)
The file is an add-in
The code is OK
I have 512Mb but this is the same on 2Gb computers.
The task manager is OK and in any case send excel in background doesn't change the processor status.

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources