We’d like to remind Forumites to please avoid political debate on the Forum.

This is to keep it a safe and useful space for MoneySaving discussions. Threads that are – or become – political in nature may be removed in line with the Forum’s rules. Thank you for your understanding.

Excel 2007 VBA scripts slow

Has anyone found a way of getting VBA scripts to work as well in Excel 2007 as 2003?

I've got loads of scripts that I use at work on 2003 that take a few seconds and yet take ten times as long at home on 2007.

If the script includes drawing graphs it becomes even worse.

I've tried writing the scripts directly into a fresh 2007 sheet and I still get the same result.

What have MS done with Excel 2007 to make it so horrendously slow??

BTW: I installed service pack 2 and it made no difference either.

Comments

  • isofa
    isofa Posts: 6,091 Forumite
    There are many reports matching your issues in 2007, some people are re-writing custom applications in 2007, or just recommending clients stick to 2003.

    If the VBA is triggering recalcs, it'll slow down in 2007; if it's using unnecessary selection methods it'll also slow down, along with many other coding items which were fine (and fast) in older versions.

    Best Coding Practices for 2007 here: http://blogs.msdn.com/excel/archive/2009/03/12/excel-vba-performance-coding-best-practices.aspx

    There is an MSDN article about recalc speeds and issues here: http://msdn.microsoft.com/en-us/library/aa730921.aspx
  • ComplexP
    ComplexP Posts: 328 Forumite
    Thanks Isofar.

    So it seems that MS have royally cocked up the VBA scripting within 2007 and the only thing we can do is try to trim our codes to the leanest they can get in a vain attempt to get back to the speeds we had in 2003.

    Sometimes I wonder how things like this happen at all :mad:
  • isofa
    isofa Posts: 6,091 Forumite
    It's even worse for some cross platform apps I'm running, they stupidly removed VBA from Mac Office 2008, so if users upgraded, they lost access to everything from custom apps to simple macros! MS have promised to reinstate it in the next version...
  • ComplexP
    ComplexP Posts: 328 Forumite
    A very rare report of a problem with Mac software and it involves Microsoft.

    Somehow I find that quite funny... :rotfl:
This discussion has been closed.
★ ★ ★ Meet your Ambassadors

Categories

  • All Categories
  • 356K Banking & Borrowing
  • 255K Reduce Debt & Boost Income
  • 456.3K Spending & Discounts
  • 248.5K Work, Benefits & Business
  • 606.3K Mortgages, Homes & Bills
  • 179.1K Life & Family
  • 264.1K Travel & Transport
  • 1.6M Hobbies & Leisure
  • 16.2K Discuss & Feedback
  • 37.7K Read-Only Boards
Quick Search

Is this how you want to be seen?

We see you are using a default avatar. It takes only a few seconds to pick a picture.