+ Reply to Thread
Results 1 to 3 of 3

Vlookup macro based on 2 values returning msgbox

  1. #1
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Vlookup macro based on 2 values returning msgbox

    Hi,

    Please see attached.

    Within File1, I'd like to run a macro which looks at another file (master.xls) for instances for the same invoice (ie : if that invoice has been processed before). The check that needs to be done is if there are instances where the invoice number and invoice amount match.

    As per file1 I'd like the invoice number and amount highlighted if there are duplicates on master.xls. A msgbox is also required - showing either "No duplicates found" or "Duplicates found".

    Thanks in advance.
    Attached Files Attached Files
    Last edited by bd528; 03-07-2010 at 09:17 AM.

  2. #2
    Forum Expert MickG's Avatar
    Join Date
    11-23-2007
    Location
    Banbury,Oxfordshire
    Posts
    2,650

    Re: Vloopup macro based on 2 values returning msgbox

    Hi, Try this, in "File1.xls".
    Please Login or Register  to view this content.
    Regards Mick

  3. #3
    Forum Contributor
    Join Date
    12-31-2008
    Location
    UK
    MS-Off Ver
    Excel 2007
    Posts
    149

    Re: Vloopup macro based on 2 values returning msgbox

    Absolutely perfect.

    Having the duplicate locations in the msgbox is great.

    Thank you!

+ 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