+ Reply to Thread
Results 1 to 4 of 4

excel cannot complete this task when paste values from temp sheet

  1. #1
    Registered User
    Join Date
    02-06-2014
    Location
    derby
    MS-Off Ver
    Excel 2013
    Posts
    8

    excel cannot complete this task when paste values from temp sheet

    Hi all

    I'm running a macro in Excel 2010 that filters unique values, does v lookups and simple calculations then pastes a table from a temporary sheet into a permanent sheet. I am repeating this process 14 times in total. However, it will only work for a maximum of two iterations before I get the error above. It appears to be at paste values that it breaks.


    Please Login or Register  to view this content.
    any insight into how I can fix this?

    thanks a lot


  2. #2
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: excel cannot complete this task when paste values from temp sheet

    usually you will be better off by equating the values of a particular range. You Are selecting 9 columns, but i would imagine you don't need all of it.

    Try this:


    Please Login or Register  to view this content.


    -----------
    Using Select/Copy/PasteSpecial is not impossible, and I realize I didn't really answer your exact question. Just usually you never have to do that - making use of range variables is sooooooooo much simpler once you are introduced to it.

    Also, using sheetName.usedRange is extremely handy - but only if your worksheet in this case contains only the items you want (which, would be a good principle to design things around). That being said, if you have more stuff on the worksheet outside of the range you want to copy over, we can alter that statement to only capture the parts you need to copy.
    Attached Files Attached Files
    Last edited by GeneralDisarray; 05-08-2014 at 09:34 AM.
    Remember, saying thanks only takes a second or two. Click the star icon(*) below the post you liked, to give some Rep if you think an answer deserves it.

    Please,mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    02-06-2014
    Location
    derby
    MS-Off Ver
    Excel 2013
    Posts
    8

    Re: excel cannot complete this task when paste values from temp sheet

    Used range was in fact what I was looking for!

    Thanks ever so much. I used this along with another solution from stackoverflow

    http://stackoverflow.com/questions/2...rom-temp-sheet

  4. #4
    Forum Expert GeneralDisarray's Avatar
    Join Date
    09-15-2011
    Location
    Pittsburgh, PA, USA
    MS-Off Ver
    Windows Excel 2016
    Posts
    1,416

    Re: excel cannot complete this task when paste values from temp sheet

    Good to hear, please mark this question as "Solved"


    To mark your thread solved do the following:

    -Go to the top of the first post
    -Select Thread Tools
    -Select Mark thread as Solved

+ 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. excel can't complete this task with available resources.
    By suny100 in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 05-30-2011, 03:31 AM
  2. Excel cannot complete this task with available resources.
    By pr4t3ek in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 02-24-2009, 08:00 PM
  3. Replies: 1
    Last Post: 08-16-2006, 07:40 PM
  4. Excel cannot complete this task with available resources.
    By ChopperChand in forum Excel General
    Replies: 0
    Last Post: 04-20-2006, 11:25 AM
  5. Excel cannot complete this task
    By starguy in forum Excel General
    Replies: 7
    Last Post: 04-14-2006, 06:52 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