+ Reply to Thread
Results 1 to 4 of 4

Speed issues with VBA function

  1. #1
    Registered User
    Join Date
    05-28-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    5

    Speed issues with VBA function

    Hi,

    I have this simple function to basically calculate the average % of difference between the values in two different columns. The function is working fine but the problem is that I need to use it on more than 100 cells and it is running very very slow.

    Do you know if there is something I can do in the code to speed it up?

    Thank you,

    Jose
    Please Login or Register  to view this content.
    Last edited by Fotis1991; 10-18-2013 at 02:42 AM. Reason: Pls don't use quotes for your codes. Use code tags!!

  2. #2
    Valued Forum Contributor
    Join Date
    10-26-2008
    Location
    Birmingham, UK
    MS-Off Ver
    All versions up to 2010
    Posts
    1,025

    Re: Speed issues with VBA function

    Hi
    You could try this.
    At the start of your code after the Sub add a new line:

    Application.ScreenUpdating=False

    and at the end of your code before the End Sub add this line:

    Application.ScreenUpdating=True

    This may help.
    Good luck.
    Tony

  3. #3
    Forum Guru Izandol's Avatar
    Join Date
    03-29-2012
    Location
    *
    MS-Off Ver
    Excel 20(03|10|13)
    Posts
    2,581

    Re: Speed issues with VBA function

    You may switch this:
    Please Login or Register  to view this content.
    to this:
    Please Login or Register  to view this content.
    If you can post a workbook with sample data and showing how you use the function we may get better speeds still.

  4. #4
    Registered User
    Join Date
    05-28-2013
    Location
    Portugal
    MS-Off Ver
    Excel 2010
    Posts
    5

    Re: Speed issues with VBA function

    Please Login or Register  to view this content.
    You can download an example file here:

    https://dl.dropboxusercontent.com/u/.../example2.xlsm

    Any help in getting it faster would be awesome!

    Thank you

    Jose

+ Reply to Thread

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. SUMPRODUCT calculation speed issues
    By richardj in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 12-12-2012, 07:40 PM
  2. =today() speed issues
    By Nike6106 in forum Excel General
    Replies: 1
    Last Post: 07-06-2011, 04:11 PM
  3. Help with speed issues in a macro
    By diggeryo in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 01-25-2011, 04:25 AM
  4. Speed issues in linking filters
    By nooders in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 12-26-2009, 12:29 PM
  5. Speed issues
    By Antonio in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-08-2006, 03:30 AM

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