+ Reply to Thread
Results 1 to 7 of 7

Extremely slow copy paste (cause known, solution not)

  1. #1
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Extremely slow copy paste (cause known, solution not)

    Hello everyone,

    I wrote a code last week that copies values from a row in one work sheet into a range of another work sheet (C3:L103). The code itself works very well.
    However, it is very slow in my work book and it takes 4 to 5 minutes to copy all the values.

    After some testing I found out that it is not the code but it is related to the work book itself. The sheet I am copying into is a form that contains about 20 images on the right hand side that change according to values in drop down menus.

    Formulas for this are stored in the name manager and they are all similar to this one:

    OFFSET('Drawing options'!$E$8,MATCH(Cover!$D$20,'Drawing options'!$D$8:$D$10,0)-1,0)

    Then the images refer to the formulas with their names.I am fairly certain this causes the copying to be slow as I removed sheets from the workbook one by one.

    Has anyone ever run into this problem or has a potential solution? Would there be a way to use VBA to wait with calling the formulas for image changes until all values are copied? Is it better to change images with in an alternative way? Perhaps other solutions?

    Suggestions are very much welcome.

  2. #2
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extremely slow copy paste (cause known, solution not)

    Quote Originally Posted by amros View Post
    Hello everyone,

    I wrote a code last week that copies values from a row in one work sheet into a range of another work sheet (C3:L103). The code itself works very well.
    Did you really?

    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Extremely slow copy paste (cause known, solution not)

    Yes Jindon, with your great help This part mostly came from you but there's more than your input.

    Thanks again. I will try this later today and report back here.

  4. #4
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Extremely slow copy paste (cause known, solution not)

    This made it faster but it still takes about a minute to copy the values.

    When I copy and paste this range manually it takes less than 2 seconds to show the right images.

    I will try to replace the OFFSET functions by somethings else. In the meantime, I would love to hear it if anyone has other suggestions.

  5. #5
    Forum Guru
    Join Date
    08-15-2004
    Location
    Tokyo, Japan
    MS-Off Ver
    2013 O.365
    Posts
    22,523

    Re: Extremely slow copy paste (cause known, solution not)

    Is it only a calculation?

    Too hard to say anything without seeing your workbook.

    Please Login or Register  to view this content.
    Last edited by jindon; 07-05-2017 at 01:11 AM.

  6. #6
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Extremely slow copy paste (cause known, solution not)

    I tried that one as well after searching on Google. Didn't make a big difference unfortunately.
    First I will spend more time on the problem. If I can't get it to run faster, I will upload a sample file.

  7. #7
    Registered User
    Join Date
    12-12-2013
    Location
    China
    MS-Off Ver
    Excel 2010
    Posts
    40

    Re: Extremely slow copy paste (cause known, solution not)

    Solved.

    Maybe not the most elegant solution but this is what I did:

    I gave the name reference a formula that the reference is either empty or the offset function depending on a cell value in a hidden tab
    (which is there already anyway) that can be TRUE or FALSE. It's TRUE by default. Beginning of macro I set this to false. The true and false are use in an if statement.

+ 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] Copy/Drag Down for Data range's running extremely slow.
    By Hyflex in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 12-23-2011, 01:35 AM
  2. Extremely Slow code. Please Help
    By flyersguy4 in forum Excel Programming / VBA / Macros
    Replies: 7
    Last Post: 05-30-2011, 09:26 PM
  3. Extremely slow macro!
    By PSm1th29 in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 07-23-2010, 06:27 AM
  4. FileCopy extremely slow
    By Idiot in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 11-07-2008, 12:10 AM
  5. Excel is extremely slow now
    By Martindelica in forum Excel General
    Replies: 0
    Last Post: 05-01-2007, 08:32 PM
  6. Extremely slow file
    By Jay in forum Excel General
    Replies: 3
    Last Post: 07-10-2006, 08:19 AM
  7. EXTREMELY slow toolbars?
    By Maury Markowitz in forum Excel Programming / VBA / Macros
    Replies: 0
    Last Post: 05-23-2006, 11:20 AM
  8. [SOLVED] Workbook is now Extremely Slow
    By Dmorri254 in forum Excel Formulas & Functions
    Replies: 4
    Last Post: 05-03-2005, 02:19 PM

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