+ Reply to Thread
Results 1 to 9 of 9

Poor Macro Performance

  1. #1
    Registered User
    Join Date
    01-05-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Poor Macro Performance

    I have an excel sheet containing macros. I have used it several times. But presently when i am trying to run macros, gradually running speed decreasing and finally getting hanged. I am attaching this file. Please go through it and give some solution. Presently I am using Excel-2010. Macros are in columns U, W, Y in the sheet "INPUT_SUPER". To run Macros we have 2 press and hold Ctrl+shift+Q.
    Attached Files Attached Files
    Last edited by DonkeyOte; 01-07-2011 at 04:35 AM. Reason: title modification

  2. #2
    Forum Expert royUK's Avatar
    Join Date
    11-18-2003
    Location
    Derbyshire,UK
    MS-Off Ver
    Xp; 2007; 2010
    Posts
    26,200

    Re: Problem in Macros

    There's no code in that sheet
    Hope that helps.

    RoyUK
    --------
    For Excel Tips & Solutions, free examples and tutorials why not check out my web site

    Free DataBaseForm example

  3. #3
    Registered User
    Join Date
    01-05-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Problem in Macros

    Quote Originally Posted by royUK View Post
    There's no code in that sheet
    But there are macros in certain columns like 'U', 'W', 'Y' . Macros in column 'U' is running well, but that in 'W' is running very slow and after some time excel is getting hanged. Could u pls help me.

  4. #4
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Problem in Macros

    Your code is confusing to me. Where is the active cell supposed to be when you run this?
    If you're happy with someone's help, click that little star at the bottom left of their post to give them Reps.

    ---Keep on Coding in the Free World---

  5. #5
    Forum Expert Mordred's Avatar
    Join Date
    07-06-2010
    Location
    Winnipeg, Canada
    MS-Off Ver
    2007, 2010
    Posts
    2,787

    Re: Problem in Macros

    And, what is it supposed to do?

  6. #6
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Problem in Macros

    Hi,
    You have 9884 formulas on the Input_Super sheet alone. That is a lot. You also have bad Range Names. It looks like your work needs cleaning up. I was able to Open Excel and then Open AND Repair which seemed to help some.

    The code is in Module 2 not behind the sheet.

    I think you just have so many formulas on the Input_Super sheet that it slows down when trying to recalculate and takes a long time and then dies.

    Try turning Calculation to Manual and do things to see if it helps the speed.

    I think you have more problems with the number of formulas than with your macro.

    Try to save the workbook in the 2010 format of .xlsx and see if that helps. Find the attached.
    Attached Files Attached Files
    Last edited by MarvinP; 01-06-2011 at 01:48 AM.
    One test is worth a thousand opinions.
    Click the * Add Reputation below to say thanks.

  7. #7
    Registered User
    Join Date
    01-05-2011
    Location
    New Delhi
    MS-Off Ver
    Excel 2010
    Posts
    3

    Re: Problem in Macros

    Hello friend, the sheet u had sent in excel-2010 version is giving the same problem. But yesterday I found that it is running well in excel-2003 and excel-2004. But it is getting hanged when I m running it in Excel-2007 & 2010. Could u pls give me a solution.
    Last edited by DonkeyOte; 01-07-2011 at 04:36 AM. Reason: removed unnecessary quote

  8. #8
    Forum Guru MarvinP's Avatar
    Join Date
    07-23-2010
    Location
    Woodinville, WA
    MS-Off Ver
    Office 365
    Posts
    16,167

    Re: Problem in Macros

    Hi,

    I have a utility called PUP from John Walkenbach that I ran on your workbook. I'm attaching this report.

    It seems you have hidden named ranges (see Name Report tab) and even ranges that have bad Refs. I'd clean those up first.

    Then on the Worksheet Report tab it shows you have 30192 formulas across your 12 sheets. You have hidden columns and hidden rows on some sheets, I'd unhide all those also to do a cleanup.

    With the number of sheets (greater than 2) and number of formulas (greater than 10) - you are on your own. I can't imagine anyone wanting to tackle this big of a problem (for free).

    You should try to understand the big picture of what is needed and simplify, simplify, simplify. The workbook was so big and slow, I never got a chance to look at the macros.

    good luck.
    Attached Files Attached Files
    Last edited by MarvinP; 01-07-2011 at 01:10 AM.

  9. #9
    Forum Guru DonkeyOte's Avatar
    Join Date
    10-22-2008
    Location
    Northumberland, UK
    MS-Off Ver
    O365
    Posts
    21,531

    Re: Poor Macro Performance

    ckm08 - welcome to the board - going forward please try to keep thread titles relevant to the underlying problem (here that would seemingly be performance)

    on this occasion - given first thread - I've modified for you but please bear above rule in mind (and all other Forum Rules)

    Quote Originally Posted by ckm08
    I found that it is running well in excel-2003 and excel-2004. But it is getting hanged when I m running it in Excel-2007 & 2010
    I've not looked at your file but note that sheet size jumps dramatically from XL2007 onwards... perhaps that's a good place to start ?
    (ie see if you're looping / processing large ranges [unnecessarily])
    Last edited by DonkeyOte; 01-07-2011 at 04:39 AM.

+ 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