+ Reply to Thread
Results 1 to 6 of 6

VBA to highlight/unhighlight duplicates accross many sheets

  1. #1
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    VBA to highlight/unhighlight duplicates accross many sheets

    I am trying to develop a code to highlight duplicates across multiple sheets I have thus far been unsuccessful I found an example using cell addresses online and came up with the following and this works IF the duplicate values are in the same cell IE sheet 1 A1 and sheet 2 A1... What I need however is a macro that will do the same thing to highlight and unhighlight based on duplicates found anywhere in the workbook. workbook in question has about 150 worksheets to look through. Please let me know what you guys can come up with.

    Please Login or Register  to view this content.
    Please Login or Register  to view this content.

  2. #2
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA to highlight/unhighlight duplicates accross many sheets

    That is looking through A1:AH1000, I presume that is for every sheet

    Do you want
    "things in Sheet1 that are on all other sheets"
    "things in Sheet1 that are on any other sheet"
    "things on any sheet that are also on any different sheet"

    If one of the first two options, do you want only the cell in sheet1 highlited or both sheet1 and the cell in the other sheet?

    Also is it all the sheets in the workbook or only most of them?
    Last edited by mikerickson; 02-11-2016 at 02:52 PM.
    _
    ...How to Cross-post politely...
    ..Wrap code by selecting the code and clicking the # or read this. Thank you.

  3. #3
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA to highlight/unhighlight duplicates accross many sheets

    duplicate post

  4. #4
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    Re: VBA to highlight/unhighlight duplicates accross many sheets

    I want to highlight "Things on any sheet that are also on any different sheet"

    All sheets. Also the correct range I would like it to check would be AB3:AL150. If there is a duplicate I would like it highlighted on all sheets.

    Thanks for the reply.
    Last edited by Lsxtrkiller; 02-12-2016 at 08:57 AM.

  5. #5
    Forum Expert mikerickson's Avatar
    Join Date
    03-30-2007
    Location
    Davis CA
    MS-Off Ver
    Excel 2011
    Posts
    6,229

    Re: VBA to highlight/unhighlight duplicates accross many sheets

    I think this might do what you want.
    Please Login or Register  to view this content.

  6. #6
    Forum Contributor
    Join Date
    10-13-2015
    Location
    California
    MS-Off Ver
    Office 2013
    Posts
    138

    Re: VBA to highlight/unhighlight duplicates accross many sheets

    This looks amazing. So far no issues its doing what I wanted. It takes longer to run than I was hoping but its ALOT of cells to check so I guess its so be expected.

    Thank you so much.

+ 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. [SOLVED] Modify Userform to highlight or unhighlight displayed ComboBox Value
    By Brawnystaff in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 05-24-2014, 04:08 AM
  2. [SOLVED] VBA code to highlight and unhighlight cells as you click in a worksheet
    By chrispy67 in forum Excel Programming / VBA / Macros
    Replies: 2
    Last Post: 01-12-2014, 07:43 PM
  3. Highlight duplicates across multiple sheets
    By Monkihunta in forum Excel General
    Replies: 0
    Last Post: 09-09-2013, 10:53 AM
  4. [SOLVED] Highlight and unhighlight cells
    By Jay-1.1 in forum Excel Programming / VBA / Macros
    Replies: 20
    Last Post: 03-28-2013, 05:11 PM
  5. Highlight duplicates across two sheets or tables
    By Usta in forum Excel Formulas & Functions
    Replies: 7
    Last Post: 12-18-2012, 07:52 PM
  6. Replies: 1
    Last Post: 06-22-2012, 11:37 PM
  7. Replies: 2
    Last Post: 10-13-2005, 11:05 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