+ Reply to Thread
Results 1 to 6 of 6

Delete Duplicate Rows

  1. #1
    Forum Contributor myobreportguru's Avatar
    Join Date
    09-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2016
    Posts
    231

    Delete Duplicate Rows

    I have a workbook that have several worksheets. In the first worksheet there are duplicate rows 820 to 827 and the second worksheet the duplicate rows are 288 and 289. I want to delete those rows. The code needs to be added to the existing code to extend the formulas in Col J so delete the rows and then extend the formula and the same thing for all worksheets. Only the first and second worksheets have duplicates at the moment. In the future data will be added to each worksheet which will definitely have duplicates so that will need to be deleted as well. I would appreciate any help. Thanks in advance.

    Regards
    John
    Attached Files Attached Files

  2. #2
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Delete Duplicate Rows

    Hello myobreportguru,

    First of all, Do Not Use Merged Cells, it messes around with Automation.

    On Sheet 7 in Rows 808 to 810 please change your merged cells as demonstrated in the attachment.

    To remove duplicates from all sheets, you could change your Code as below;

    Please Login or Register  to view this content.
    I am not sure if you wanted a Button attached to the NoDups Code.


    Regards.
    Last edited by Winon; 05-07-2017 at 01:31 AM. Reason: Spelling
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  3. #3
    Forum Contributor myobreportguru's Avatar
    Join Date
    09-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2016
    Posts
    231

    Re: Delete Duplicate Rows

    Thanks for your help. I put the code in a button on sheet 1. However there were no rows deleted, sheet 1 or sheet 2. I hope I understood you correctly.

    Regards
    John

  4. #4
    Forum Contributor myobreportguru's Avatar
    Join Date
    09-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2016
    Posts
    231

    Re: Delete Duplicate Rows

    I meant to send the file back.

  5. #5
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: Delete Duplicate Rows

    Hi myobreportguru,

    In that case we will have to work with Columns from A to i.

    Please Change the Code to;

    Please Login or Register  to view this content.
    I see you have marked the Thread as Solved. How did you solve it, if I may?

    Regards.
    Last edited by Winon; 05-07-2017 at 05:32 AM. Reason: Added more info

  6. #6
    Forum Contributor myobreportguru's Avatar
    Join Date
    09-18-2012
    Location
    Brisbane, Australia
    MS-Off Ver
    Excel 2016
    Posts
    231

    Re: Delete Duplicate Rows

    I'm sorry Winon. I thought you had clocked off and I'm in a hurry. I don't know if I can do this but I marked it as solved and went and put it in the commercial posts. Why don't you take it up on the commercial post and get some funds for your effort.

    Regards
    John

+ 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. Add values from duplicate rows and delete duplicate
    By jane204 in forum Excel General
    Replies: 3
    Last Post: 11-20-2016, 08:36 AM
  2. [SOLVED] Delete rows based on duplicate cell, but leaving first and last duplicate.
    By LadyNicole in forum Excel Programming / VBA / Macros
    Replies: 4
    Last Post: 05-28-2013, 05:07 AM
  3. Replies: 6
    Last Post: 03-04-2013, 12:03 AM
  4. VBA helps needed to Sum duplicate values and delete duplicate rows
    By krjoshi in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 02-03-2013, 11:40 PM
  5. Replies: 5
    Last Post: 11-12-2012, 08:38 PM
  6. [SOLVED] Sum Duplicate values then delete duplicate rows
    By keekdapolak in forum Excel General
    Replies: 7
    Last Post: 09-20-2012, 02:57 PM
  7. delete duplicate rows, delete empty rows
    By loade in forum Excel Programming / VBA / Macros
    Replies: 12
    Last Post: 05-03-2012, 05:42 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