+ Reply to Thread
Results 1 to 10 of 10

Copy row of data, paste in another worksheet, delete some of the cells copied

  1. #1
    Registered User
    Join Date
    05-11-2012
    Location
    Chester, England
    MS-Off Ver
    Excel 2007
    Posts
    28

    Copy row of data, paste in another worksheet, delete some of the cells copied

    Hi,

    At the moment, I have this code:

    Please Login or Register  to view this content.
    What I want to do is change the formula so it copies the whole row, moves it to another sheet, but I want it so rather than delete the entire row, to only delete some of the cells in the same row.

    Is this possible to do?

    I hope I have explained this clearly enough

  2. #2
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    Do you want to delete the source row but only some fields of it in the output row??
    If I've helped you, please consider adding to my reputation - just click on the liitle star at the left.

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~(Pride has no aftertaste.)

    You can't do one thing. XLAdept

    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~aka Orrin

  3. #3
    Registered User
    Join Date
    05-11-2012
    Location
    Chester, England
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    What I'm basically trying to do is copy a record from the properties sheet to the archive sheet, but want some fields like property address to NOT be deleted to save time typing them in again

  4. #4
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    You'll need to provide a "mask" for the fields to be retained.

  5. #5
    Registered User
    Join Date
    05-11-2012
    Location
    Chester, England
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    How would I do that?

  6. #6
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    Just list the fields to be retained - "mask" doesn't mean anything special per se.

  7. #7
    Registered User
    Join Date
    05-11-2012
    Location
    Chester, England
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    I get it, but how would the coding look to do this?

  8. #8
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    Perhaps something like this:

    After the pasting we would just clear the contents of the columns to be "deleted"

    '
    Please Login or Register  to view this content.

  9. #9
    Registered User
    Join Date
    05-11-2012
    Location
    Chester, England
    MS-Off Ver
    Excel 2007
    Posts
    28

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    thanks .

  10. #10
    Forum Guru xladept's Avatar
    Join Date
    04-14-2012
    Location
    Pasadena, California
    MS-Off Ver
    Excel 2003,2010
    Posts
    12,378

    Re: Copy row of data, paste in another worksheet, delete some of the cells copied

    You're welcome!

+ 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