+ Reply to Thread
Results 1 to 7 of 7

vba to ONLY highlight contiguous duplicates in one column

  1. #1
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    vba to ONLY highlight contiguous duplicates in one column

    Hi Guys,

    I have this code that highlights cells with the same values regardless of being contiguous or non-contiguous in one column. Can this code be modified to highlight ONLY contiguous cells in one column with the same values? Other non-contiguous cells with the same values should be ignored.

    Please Login or Register  to view this content.
    Appreciating any valuable input. Thanks in advance.

  2. #2
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: vba to ONLY highlight contiguous duplicates in one column

    this seems to work but not sure how you want to treat multiple contingent groups. ie if the number 1 is grouped in a set of 5 then a set of 1 then a set of 2 this will highlight the group of 5 AND the group of 2 but not the group of 1

    Please Login or Register  to view this content.
    Happy with my advice? Click on the * reputation button below

  3. #3
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: vba to ONLY highlight contiguous duplicates in one column

    Thank you mate for your promptness and genius code. It ran very smoothly and did as exactly as it is needed for. My best personal regards.

  4. #4
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: vba to ONLY highlight contiguous duplicates in one column

    No problems mate. Thanks for the rep too.

  5. #5
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: vba to ONLY highlight contiguous duplicates in one column

    HI Crooza, running the code for a while, I noticed it skips many duplicate values in the same column without highlighting, any suggestions? thanks.

  6. #6
    Forum Contributor
    Join Date
    04-04-2013
    Location
    Sydney, Australia
    MS-Off Ver
    Excel 2010
    Posts
    204

    Re: vba to ONLY highlight contiguous duplicates in one column

    Sorry mate, it was my mistake. Because I changed the colour palette some duplicates were actually highlighted but in "no colour". So please disregard my previous comment. Once again, thank you very much.

  7. #7
    Forum Expert Crooza's Avatar
    Join Date
    10-19-2013
    Location
    Hunter Valley, Australia
    MS-Off Ver
    Excel 2003 /7/10
    Posts
    2,082

    Re: vba to ONLY highlight contiguous duplicates in one column

    Phew. I was wracking my brain trying to work this out. Glad it's all working

+ 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. Compare Column A to Column B then highlight/format any duplicates
    By BigExcelBaby in forum Excel Programming / VBA / Macros
    Replies: 1
    Last Post: 03-17-2014, 06:51 PM
  2. highlight duplicates based on multiple column data
    By just_some_dude in forum Excel General
    Replies: 4
    Last Post: 08-31-2012, 01:37 PM
  3. highlight duplicates in column when selected
    By Doug W in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 10-05-2011, 10:43 AM
  4. Replies: 4
    Last Post: 08-05-2010, 08:10 AM
  5. Excel 2007 : Find and highlight duplicates in column
    By mbesspiata in forum Excel General
    Replies: 5
    Last Post: 08-26-2009, 07:31 PM

Tags for this Thread

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