+ Reply to Thread
Results 1 to 6 of 6

highlight duplicate rows using textbox

  1. #1
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    highlight duplicate rows using textbox

    hi
    can any one tell me how to highlight duplicate rows (all the row not just cell "a")on a sheet based on textbox value
    here on sheet4 i have data some of it duplicated for the reason of that the item could have been issued and returned numerous times,on the sheet is a textbox
    but will probably put this on userform at a later date,i would like to enter say st0195 in textbox and all instances of that number highlighted so i can copy to a temp sheet to find out how many times its been issued/returned and the locations its been to,after sending to temp sheet undo highlight and get ready for another number, have tried various code from threads have left the latest one on which turns all duplicates red and does not entertain the textbox,the idea is i can build a history of each item ,if it gets damaged is it because the enviroment its been used in or just past its sell by date ect,various threads do different things
    but none i can see that fits the bill
    any help would be gratefully received
    cheers colin
    Attached Files Attached Files
    Last edited by cfinch100; 04-04-2013 at 12:54 PM.

  2. #2
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: highlight duplicate rows using textbox

    Step 1.
    Put the following code into the code module for sheet 4.

    Please Login or Register  to view this content.
    Step 2.
    Select cells A3:M20

    Step 3.
    Select conditional formatting

    Step 4
    Select New Rule

    Step 5
    Select "Use a formula to determine....."

    Step 6
    Enter =$A3=$Q$2

    Step 7
    Select preferred style of formatting

    Step 8
    Select OK

    Step 9
    Test
    Elegant Simplicity............. Not Always

  3. #3
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: highlight duplicate rows using textbox

    hi
    andy have tried but can not get it to work how do i put in code module for sheet4 not sure if done that part right
    it will be me thats wrong
    cheers colin

  4. #4
    Valued Forum Contributor
    Join Date
    03-29-2013
    Location
    United Kingdom
    MS-Off Ver
    Office/Excel 2013
    Posts
    1,749

    Re: highlight duplicate rows using textbox

    There you go mate

    logg4.3.xlsm

  5. #5
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: highlight duplicate rows using textbox

    hi andy
    still not working
    thanks though
    cheers colin

  6. #6
    Forum Contributor
    Join Date
    10-01-2012
    Location
    england
    MS-Off Ver
    Excel 2016 pro
    Posts
    772

    Re: highlight duplicate rows using textbox

    hi andy
    forget last post was writing before you sent
    many thanks thats ace
    cheers colin

+ 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