+ Reply to Thread
Results 1 to 3 of 3

VBA Code runs too slow

  1. #1
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    VBA Code runs too slow

    Hello good morning,

    Can someone help to find out why does this VBA code runs so slow? I'm sure there must be a way of reducing this code to something much more simple wich optimizes the calculations.

    It's a macro code to hide or unhide cells depending if they are empty or not:

    Please Login or Register  to view this content.

    The complete VBA code has 5 times what I have paste above and so it runs much more slower than this one. I didn't paste it all complete code cause it runs out of characters admited...

    Hope someone can guide me with this.

    Thank you very much in advance.

    Kind Regards,

    pezalmendra

  2. #2
    Forum Contributor arlu1201's Avatar
    Join Date
    09-09-2011
    Location
    Bangalore, India
    MS-Off Ver
    Excel 2003 & 2007
    Posts
    19,166

    Re: VBA Code runs too slow

    Do you have a sample file that you can upload?
    If I have helped, Don't forget to add to my reputation (click on the star below the post)
    Don't forget to mark threads as "Solved" (Thread Tools->Mark thread as Solved)
    Use code tags when posting your VBA code: [code] Your code here [/code]

  3. #3
    Forum Contributor
    Join Date
    07-22-2012
    Location
    Spain
    MS-Off Ver
    Excel 2008
    Posts
    304

    Re: VBA Code runs too slow

    Hello arlu1201,

    Thanks for your reply!

    I have attached an example of the macro Im running. It is prepared to run once the Sheet has been activated.

    Regards,
    Attached Files Attached Files

+ 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