+ Reply to Thread
Results 1 to 4 of 4

Macros running much slower in 2007/Win7

  1. #1
    Registered User
    Join Date
    11-09-2006
    Posts
    65

    Macros running much slower in 2007/Win7

    Anybody else experience this? My macros all run much slower. Some of them went from 10minutes to 2hours. Others just 5s to 10s, or so.

    Is there some kind of setting somewhere to speed it up?

    I upgraded to office 2007 and win7 at the same time, so i dont know if it is related to 2007 or win7, or both.

  2. #2
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macros running much slower in 2007/Win7

    VBA in Office 2007 is generally slower than in previous versions, especially with charts/drawing objects, but it shouldn't be that much slower as a rule. We'd need to see an example to be more specific, I think.
    Remember what the dormouse said
    Feed your head

  3. #3
    Registered User
    Join Date
    11-09-2006
    Posts
    65

    Re: Macros running much slower in 2007/Win7

    Generally most of the marcros I run will have an end result of a chart or multiple charts. Even hundreds of charts (as in the case of the 2+hour macro).

    I was wondering if there wasnt some type of 'run macro in background' option or code that would make it run faster.

  4. #4
    Forum Guru romperstomper's Avatar
    Join Date
    11-04-2008
    Location
    A1
    MS-Off Ver
    Most
    Posts
    12,302

    Re: Macros running much slower in 2007/Win7

    Unfortunately not. (there's no Application.DoStuffFaster property) The entire charting object model was changed in 2007 and let's just say it's not exactly perfect (witness the fact that the macro recorder barely works with charts in 2007). The best you can do really is throw as much power at it as possible, use Multi-threaded calculation if you can (though it won't help on the pure VBA side) and optimise your code as far as humanly possibly - that part is much more important than it used to be.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1