+ Reply to Thread
Results 1 to 6 of 6

Making Macro Run Faster

  1. #1
    Registered User
    Join Date
    02-20-2012
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    28

    Making Macro Run Faster

    I have a macro and I am starting to learn how to write macros. I was wondering if anyone had any suggestions as to how to make the macro run faster. Any tips would greatly be appreicated. Thanks.

    Calling the macro when cell is changed
    Please Login or Register  to view this content.
    The macro itself
    Please Login or Register  to view this content.

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

    Re: Making Macro Run Faster

    Hi nalgene5622, are you able to supply us with the workbook? If yes, it should be a sanitized version with no personal information in it. It would benefit all those who try to help if they had the data types to work with.
    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---

  3. #3
    Registered User
    Join Date
    12-04-2011
    Location
    Poland
    MS-Off Ver
    Excel 2010
    Posts
    22

    Re: Making Macro Run Faster

    Hi, try adding a string on the very beginning of the macro, after "sub" string
    "Application. ScreenUpdating= False"
    You won't see on the screen how macro works, but it will work faster

    regards
    Last edited by mardyl; 04-17-2012 at 07:55 PM.

  4. #4
    Registered User
    Join Date
    02-20-2012
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Making Macro Run Faster

    I have attached workbook Mordred. Sorry about that next I will attach it with the original post. Thanks for the request mardyl I will try that. Anything else come to mind?
    Attached Files Attached Files

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

    Re: Making Macro Run Faster

    I'm not really getting what it is you attempting by your example but your code seems to run fairly quick. What exactly is your issue?

  6. #6
    Registered User
    Join Date
    02-20-2012
    Location
    Austin
    MS-Off Ver
    Excel 2010
    Posts
    28

    Re: Making Macro Run Faster

    Mordred,

    I have several macros that will run when a cell within a row has a value. The macros to do this are very similar to the one I posted. I just was not sure if there was something to make the code run faster.

+ 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