+ Reply to Thread
Results 1 to 7 of 7

Copy text not formula between two worksheets

  1. #1
    Registered User
    Join Date
    11-08-2007
    MS-Off Ver
    2021 Prof
    Posts
    85

    Arrow Copy text not formula between two worksheets

    I am attempting to automatically copy selected rows to a new worksheet and all works well but for one thing.
    Some of the sources cells have formulas imbedded and when the current systems does the copy I get a #REF error in the new worksheet cell. So what I want to do is copy the row as text only.

    I have tried the main answer that seems to appear (changing .paste to .pastespecial )but it doesnt seem to work... so suggestions ???


    The current code is......


    Please Login or Register  to view this content.

    Many thanks (and a big Seasonal Cheer)

  2. #2
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Copy text not formula between two worksheets

    Maybe try:

    Please Login or Register  to view this content.
    abousetta
    Please consider:

    Thanking those who helped you. Click the star icon in the lower left part of the contributor's post and add Reputation.
    Cleaning up when you're done. Mark your thread [SOLVED] if you received your answer.

  3. #3
    Registered User
    Join Date
    11-08-2007
    MS-Off Ver
    2021 Prof
    Posts
    85

    Re: Copy text not formula between two worksheets

    That was quick .. many thanks Abousetta....unfortunately it just seems to send the routine into a loop and I have to 3 finger the pc to stop it

  4. #4
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Copy text not formula between two worksheets

    There is no loop in the line of code I posted. So there is no reason for that to be the problem. Try it in a separate sub and see what happens, else post a sample workbook.

  5. #5
    Registered User
    Join Date
    11-08-2007
    MS-Off Ver
    2021 Prof
    Posts
    85

    Re: Copy text not formula between two worksheets

    Hi again .. bad choice of words on my part.. but when I do enter your suggestion and run the code the pc locks and excel stops responding

  6. #6
    Forum Guru
    Join Date
    03-12-2010
    Location
    Canada
    MS-Off Ver
    2010 and 2013
    Posts
    4,418

    Re: Copy text not formula between two worksheets

    I don't see any reason for your computer to hang from that line of code. I will need to see your workbook or a dummy copy of it to give further advice.

    abousetta

  7. #7
    Registered User
    Join Date
    11-08-2007
    MS-Off Ver
    2021 Prof
    Posts
    85

    Re: Copy text not formula between two worksheets

    test excel.zip


    Hi there .. attached is a cut down version of the worksheet
    Basically data is entered in the year sheet (2012, 2013 etc)
    SORTED is a summary of the jobs that don’t have a entry in the CLEARED Column
    Entering a name and a year reference in the yellow cells on the SORTED sheet.. then pressing REPORT makes it all happen
    The problem results from having a auto number formula in the F column on each of the year sheets
    To show , 2012 doesn’t have the formula, 2013 does .. and 2013 gets the #REF error.. or as a quirk in this one someodd numbers
    Anything you can suggest would be appreciate

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

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