+ Reply to Thread
Results 1 to 8 of 8

Copy/paste several hundred values from 1 sheet to many

  1. #1
    Registered User
    Join Date
    10-16-2019
    Location
    Holmfirth, England
    MS-Off Ver
    365
    Posts
    13

    Copy/paste several hundred values from 1 sheet to many

    Calling all you amazing gurus out there!!
    Have used the following after a lot of research and trying several methods.
    The source range consists of values dotted about within a rectangular range, within a single sheet. The target range consists of multiple sheets.
    The below is just a test - the full copy has a lot more values.

    'Ftime' below reports at 4.6 seconds. Have I overlooked something please?
    ---------------------------------------------------------------------------------------------
    Please Login or Register  to view this content.
    Last edited by davesexcel; 10-09-2020 at 06:39 AM.

  2. #2
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,884

    Re: Copy/paste several hundred values from 1 sheet to many

    Why are you multiplying the time by 1000?
    The elapsed time in seconds is simply
    Please Login or Register  to view this content.

  3. #3
    Registered User
    Join Date
    10-16-2019
    Location
    Holmfirth, England
    MS-Off Ver
    365
    Posts
    13

    Re: Copy/paste several hundred values from 1 sheet to many

    yes you're correct but the elapsed time really is 4.6 seconds, unfortunately, not 0.0046.

  4. #4
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,884

    Re: Copy/paste several hundred values from 1 sheet to many

    Do you have any conditional formatting?
    That code takes ~3 thousandths of a second for me

  5. #5
    Registered User
    Join Date
    10-16-2019
    Location
    Holmfirth, England
    MS-Off Ver
    365
    Posts
    13

    Re: Copy/paste several hundred values from 1 sheet to many

    thanks again for the reply.
    Your comment implies that conditional formatting (CF) is an issue even when recalc is switched off...I wasn't aware....

    I removed CF on the INC sheet, it didn't make much difference. I have quite a bit of CF on other sheets though...

    Also fyi the spreadsheet is very complex, with links galore, complex calculations, 47 sheets, I'd assumed these facts aren't relevant though as the recalc is switched off and operation I'm trying to do is self-contained with code exactly as specified.

    Many thanks.

  6. #6
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,884

    Re: Copy/paste several hundred values from 1 sheet to many

    CF will recalc regardless of the calculation state.
    If it takes over 4 seconds to do what you showed in your op, then something else is happening.
    Without seeing your workbook, I have no idea what.

  7. #7
    Registered User
    Join Date
    10-16-2019
    Location
    Holmfirth, England
    MS-Off Ver
    365
    Posts
    13

    Re: Copy/paste several hundred values from 1 sheet to many

    I've found the problem. It was the camera tool, which has slowed the assignment of values by a factor of somewhere in the region of 10-100 times, depending on other things.
    I've also found the solution which is to replace the camera tool image with a named range, conditional on the value of a single cell.
    The solution is on this forum but ironically it won't let me paste the link.
    Fluff13 thanks for your input, it helped me to get there.

  8. #8
    Forum Guru
    Join Date
    09-10-2017
    Location
    Chippenham, England
    MS-Off Ver
    365
    Posts
    15,884

    Re: Copy/paste several hundred values from 1 sheet to many

    Glad you sorted it & thanks for the feedback.

+ 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 values from other sheet and TRANSPOSE Paste in active sheet
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 10-31-2019, 02:23 AM
  2. Macro copy from one sheet and paste values in NEXT VISIBLE SHEET & then ACTIVATE IT.
    By acsishere in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 10-10-2017, 04:54 AM
  3. Code to copy and paste values on a sheet to another sheet
    By Forum2000s in forum Excel Programming / VBA / Macros
    Replies: 5
    Last Post: 05-07-2017, 09:33 AM
  4. [SOLVED] Copy cell values from one sheet and paste it in another sheet of the same workbook
    By Tauheed Ahmed in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 11-13-2016, 08:51 AM
  5. Copy and Paste Values into new sheet
    By NotSwank in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 04-29-2014, 12:33 PM
  6. [SOLVED] should copy and paste the intersect values from sheet 1 to sheet 2
    By Apps in forum Excel Programming / VBA / Macros
    Replies: 22
    Last Post: 03-12-2013, 10:06 AM

Tags for this Thread

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