+ Reply to Thread
Results 1 to 7 of 7

Delete dubs Sheet 2 based on value in 2 Sheets

  1. #1
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Delete dubs Sheet 2 based on value in 2 Sheets

    Hi. I would like to find a code which can find dublettes in Sheet2 Column A2 and down and Sheet 3 Column A2 and down.
    And then delete the rows dubs in Sheet 2 but only for column A and B. (Invoice and amount)

    The code shall run from a command button in Sheet1.

    I have attached a test sheet where its more easy to see what i want. Hope some can help.

    Sincerely

    Abjac
    Attached Files Attached Files

  2. #2
    Forum Expert JapanDave's Avatar
    Join Date
    06-10-2008
    Location
    The grid, I got in!
    MS-Off Ver
    Excel 2010/13
    Posts
    1,696

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    Try this, Click the button on page one.

    Please Login or Register  to view this content.
    Attached Files Attached Files
    Last edited by JapanDave; 06-03-2013 at 01:20 AM.
    Be fore warned, I regularly post drunk. So don't take offence (too much) to what I say.
    I am the real 'Napster'
    The Grid. A digital frontier. I tried to picture clusters of information as they moved through the computer. What did they look like? Ships? motorcycles? Were the circuits like freeways? I kept dreaming of a world I thought I'd never see. And then, one day...

    If you receive help please give thanks. Click the * in the bottom left hand corner.

    snb's VBA Help Files

  3. #3
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    Thanks Japan Dave. It works i dont know what happen first time i used it. But if works fine now. So thanks allot really great

    Have a nice day

    SIncerely

    Abjac
    Last edited by abjac; 06-03-2013 at 02:34 AM.

  4. #4
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    HI Japan Dave. I have made a new thread because the code gives me some problems, Together with other codes also,
    Have a look thanks
    Sincerely
    Abjac
    http://www.excelforum.com/excel-prog...html?p=3265097

  5. #5
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    Abjac,
    What is the issue? Why is Japan Dave code is not working. Are you comparing column A only, or both columns A and B?

  6. #6
    Forum Contributor
    Join Date
    07-28-2012
    Location
    madrid
    MS-Off Ver
    Excel 2010 at work excel 2016
    Posts
    1,102

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    HI AB33. It gives me a error in this line.
    Please Login or Register  to view this content.
    But if you have time please have a look at the new thread, if you download the sheet i am sure you can see what i would like to make with it.

    And in that sheet this code gives the error also.
    Its weird really it did not in the beginning. But when i open it here now, it does.

    SIncerely

    Abjac

  7. #7
    Forum Expert
    Join Date
    03-28-2012
    Location
    TBA
    MS-Off Ver
    Office 365
    Posts
    12,454

    Re: Delete dubs Sheet 2 based on value in 2 Sheets

    Abjac ,
    I have already commented on the new thread. Please reply on the new thread.

+ 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