+ Reply to Thread
Results 1 to 4 of 4

VBA Performance Tuning on Formulas - Help!

  1. #1
    Registered User
    Join Date
    02-26-2015
    Location
    France
    MS-Off Ver
    2013
    Posts
    5

    VBA Performance Tuning on Formulas - Help!

    Hello - I have a worksheet that has a data validation (eg. north, south, east, west). And below that is the calculated data which is populated based on the selection above and master data. Note that the master data is in another sheet, so the filter is using formulas. I have close to 100 such columns in the calculated data which is pulled from other tabs.

    Now,in order to consolidate this calculated data (add a data validation value "ALL" ) I have a VBA which does the following:

    a) Loop through the each value in data validation.
    b) Data gets filtered
    c) Copy the range to another sheet.
    d) Next and so on append in a temp sheet.

    This temp sheet now has all the calculated data and I am referring back in the main sheet by using the filter ALL.

    This whole process of copy takes 1 min 30 sec to process because of the formulas. Please advise if I can use an alternative process or if it is normal to take this long when looping on formulas.

    I cannot change the workbook, as the user needs to see by region data on the main sheet as well consolidated using the data validation list.

    Regards,

  2. #2
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA Performance Tuning on Formulas - Help!

    Try turning off the Calculation and turning it on in the end of code

    Please Login or Register  to view this content.


    If your problem is solved, then please mark the thread as SOLVED>>Above your first post>>Thread Tools>>
    Mark your thread as Solved


    If the suggestion helps you, then Click *below to Add Reputation

  3. #3
    Registered User
    Join Date
    02-26-2015
    Location
    France
    MS-Off Ver
    2013
    Posts
    5

    Re: VBA Performance Tuning on Formulas - Help!

    I cannot turn the calculation mode to manual, because each time the vba auto selects the value from data validation list ( drop down), it filters the data and I need to copy this filtered data to another sheet.

    Attached is an example I created to show how the workbook looks like.
    Attached Files Attached Files

  4. #4
    Forum Guru :) Sixthsense :)'s Avatar
    Join Date
    01-01-2012
    Location
    India>Tamilnadu>Chennai
    MS-Off Ver
    2003 To 2010
    Posts
    12,788

    Re: VBA Performance Tuning on Formulas - Help!

    You have attached xlsX workbook so you have to post your code

+ 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. Skip "empty" rows (with formulas) in Worksheet to increase Performance
    By britzer in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 06-04-2014, 04:06 PM
  2. aaaarrrgh!! Calculating performance appraisal formulas
    By mzad811 in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 01-09-2014, 05:35 AM
  3. VBA performance with building formulas
    By jkj115 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 01-29-2013, 11:33 AM
  4. Formulas for Excel Performance Review
    By jodir in forum Excel General
    Replies: 3
    Last Post: 01-07-2013, 10:14 AM
  5. Macro tuning
    By lauren_wing in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 12-26-2010, 10:47 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