+ Reply to Thread
Results 1 to 6 of 6

Copy and Insert Entire Row into another sheet

  1. #1
    Registered User
    Join Date
    09-06-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Copy and Insert Entire Row into another sheet

    Hi Folks,

    I have a macro (courtesy another forum which I modified) which copies an entire row based on a 'cell value' and moves it to another sheet which is named as the 'cell value'. All the cell values are in the same column. For ex: If the cell value is Parag, then it copies all the rows with Parag to the sheet named Parag and so on.

    But when I refresh the sheet it overwrites instead of inserting new rows in the sheet named Parag.

    I am not a VBA expert and I have very limited knowledge.

    Below is my code:

    Please Login or Register  to view this content.
    Please help

    Thanks Shiva
    Last edited by shivark79; 09-11-2012 at 05:39 AM.

  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 and Insert Entire Row into another sheet

    Hi shivark79,

    Why don't you try:

    Please Login or Register  to view this content.
    for "Parag" as well as "Ganesh"??
    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
    09-06-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Copy and Insert Entire Row into another sheet

    thanks Adept!!

    I have another question.. Can I modify my macro to do the below:

    The sheet PendingItems is always refreshed with new data. Some of those data may already be available in Sheets 'Parag' and 'Ganesh'. Is it possible to check for duplicate rows from the PendingItems sheet with sheets 'Parag' and 'Ganesh' and delete duplicate rows from the PendingItems sheet only?
    Last edited by shivark79; 09-12-2012 at 12:05 AM.

  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 and Insert Entire Row into another sheet

    Yes, it's possible.

  5. #5
    Registered User
    Join Date
    09-06-2012
    Location
    India
    MS-Off Ver
    Excel 2003
    Posts
    8

    Re: Copy and Insert Entire Row into another sheet

    Is there a way to do it? Sorry for the trouble if I am asking too much..

    Say sheet PendingItems Row A4 should check against sheets Parag and Ganesh, if its not available move to row A5 and if available delete it from PendingItems sheet and then move to row A6 and so on..

    The problem I am facing is that are many other sheets in the workbook which should not be checked during this macro. I am not able to come to a conclusion..

    Tried this code and included it in my macro above.. but still does not work..

    Please Login or Register  to view this content.
    Last edited by shivark79; 09-12-2012 at 02:49 AM.

  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 and Insert Entire Row into another sheet

    Hi Shiva,

    Can you post an example book?

+ 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