+ Reply to Thread
Results 1 to 9 of 9

Replace Formula Links-very slow

  1. #1
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Replace Formula Links-very slow

    This thread is related to this thread:https://www.excelforum.com/excel-pro...ula-parts.html
    I can't post the workbook, because it's a huge beast with many interconnected parts.

    What I want to do is change "2017/2017 05 May" to "2017/2017 06 Jun" (the values will change from month to month, but this is the basic operation).

    There are approximately 33K Vlookup formulas in the workbook that would be affected by the change, and they exist on only 2 tabs. However, there are over 100K vlookups total in this workbook, and many tabs, and I think my macro is causing all of them to recalculate. Running the code below takes a full hour to complete, and there's got to be a better way.

    I've noticed that if I comment out the "SpeedOff" macro the process completes quickly (because no calculation is happening, so no formulas are refreshing). So, I'm thinking if I could limit the calculation to only those two tabs it would be a quicker process, but not sure how to do that, and not entirely sure it would do the trick. I'd sure appreciate any help I could get on this.

    Here are the two links I'm wanting to change (these are the ones the macro is using this time):
    Please Login or Register  to view this content.

    Please Login or Register  to view this content.
    I know I'm not stupid, but I suspect I'm a lot stupider than I think I am

  2. #2
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Replace Formula Links-very slow

    Hi again,

    How long does the workbook take to recalculate if you edit the links manually?
    Don
    Please remember to mark your thread 'Solved' when appropriate.

  3. #3
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Replace Formula Links-very slow

    1. look into changing Calculation method to Manual (it may allow faster copying, but will still need to be refreshed! ~ I see that the macro does Manual method). 2. Look into changing lookups to Index Match....it should be less taxing on memory

  4. #4
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Replace Formula Links-very slow

    you can use worksheets("Sheet1").EnableCalculation = False to disable the calculations on a worksheet.

    I don't think this will help too much as the array is changing the links pretty quickly its the re-calculation having to fetch data from the new source. Is it possible to have the new source open while the recalculation is taking place, this may help.

  5. #5
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Replace Formula Links-very slow

    xlnitwit,
    How do I update links manually?

    Kramxel,
    There are 20 different source files. I think having all of them open may cause even more issues.

    queuesef,
    I didn't know that Index/match formulas were less taxing on memory. Do you know of a quick way to convert hundreds of different Vlookups to Index/Match combinations?

  6. #6
    Forum Guru xlnitwit's Avatar
    Join Date
    06-27-2016
    Location
    London
    MS-Off Ver
    Windows: 2010; Mac: 16.13 (O365)
    Posts
    7,085

    Re: Replace Formula Links-very slow

    On the Data tab, click the Edit Links button, then change the source workbook(s) there.

  7. #7
    Valued Forum Contributor
    Join Date
    12-02-2009
    Location
    Austin, Tx
    MS-Off Ver
    Office 365 64-Bit, 2108, build 14326.21018
    Posts
    3,952

    Re: Replace Formula Links-very slow

    I think I've spotted my problem, and it really is my problem. in testing, I was changed the links from 06 Jun to 05 May and back again. The problem was one of the workbooks didn't exist in May, so I think the slowdown was trying to resolve that. I'll do more testing and confirm.

  8. #8
    Valued Forum Contributor
    Join Date
    11-02-2016
    Location
    NY
    MS-Off Ver
    2010
    Posts
    459

    Re: Replace Formula Links-very slow

    Good deal.....sometimes I find access better at handling many links (better than excel) but so many of the calculations are easier in Excel. Best of luck

  9. #9
    Forum Contributor
    Join Date
    09-05-2011
    Location
    Essex, England
    MS-Off Ver
    Excel 2003 Excel 2007
    Posts
    383

    Re: Replace Formula Links-very slow

    Depending on the size of the documents and as long as you turn everything of like screenupdating, calculations and so on it might not be too much of a drain on resources to have all the source files open, I'd hazard agues faster than an hour at any rate.

+ 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. [SOLVED] Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 07:05 AM
  2. Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 04:05 AM
  3. [SOLVED] Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 03:05 AM
  4. Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 02:05 AM
  5. Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 12:05 AM
  6. Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM
  7. [SOLVED] Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 10:05 PM
  8. Find and Replace Formula Links
    By Werner Rohrmoser in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 06-09-2005, 08:05 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