+ Reply to Thread
Results 1 to 9 of 9

VB Code to highhight duplicated data

  1. #1
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    VB Code to highhight duplicated data

    Hello:

    Please refer to attached file.
    I have banking data as shown.
    i need to highlight YELLOW in column D for any same amount for same date.

    Let me know if you have any questions.
    Thanks.
    Riz
    Attached Files Attached Files

  2. #2
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VB Code to highhight duplicated data

    Maybe :
    Please Login or Register  to view this content.
    1. I care dog
    2. I am a loop maniac
    3. Forum rules link : Click here
    3.33. Don't forget to mark the thread as solved, this is important

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

    Re: VB Code to highhight duplicated data

    Conditional formatting:

    =COUNTIF($D$2:$D$91,D2)>1

    Select D2 till the last row and highlight it with yellow colour.

  4. #4
    Valued Forum Contributor
    Join Date
    01-18-2007
    Location
    Georgia
    MS-Off Ver
    2010
    Posts
    4,434

    Re: VB Code to highhight duplicated data

    Hello karedog:

    Thanks a lot, it works.

    AB33 : Thanks for the CF approach

    Riz

  5. #5
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VB Code to highhight duplicated data

    You are welcome Riz, thanks for rep.points, and please don't forget to mark the thread as solved.

    Regards

  6. #6
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VB Code to highhight duplicated data

    @ karedog,

    That is a good VBA approach, if CF is not an option. However, would you not agree that the code should first Clear Column D of Interior Colors, or only the Yellow Colors, and then proceed with the remainder of your Code?

    For Example, first clear Column D of all interior Colors;

    Please Login or Register  to view this content.
    Just wondering my friend.

    Kind regards.
    Please consider:

    Be polite. Thank those who have helped you. Then Click on the star icon in the lower left part of the contributor's post and add Reputation. Cleaning up when you're done. If you are satisfied with the help you have received, then Please do Mark your thread [SOLVED] .

  7. #7
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VB Code to highhight duplicated data

    This Code below will only concern itself with coloring Cells Yellow or not, while ignoring any other Color;

    Please Login or Register  to view this content.

  8. #8
    Forum Guru karedog's Avatar
    Join Date
    10-03-2014
    Location
    Indonesia
    MS-Off Ver
    2003
    Posts
    2,971

    Re: VB Code to highhight duplicated data

    Winon my friend, what a thorough person you are. You should become a scientist who develop a rocket to Mars.
    Nice code

  9. #9
    Forum Guru Winon's Avatar
    Join Date
    02-20-2007
    Location
    East Rand, R.S.A.
    MS-Off Ver
    2010
    Posts
    6,113

    Re: VB Code to highhight duplicated data

    @ karedog,

    With your solid Code foundation, one can only reach for the stars, my friend

+ 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] Remove duplicated data and inform user how many data have been removed using macro
    By SHELLY567 in forum Excel Programming / VBA / Macros
    Replies: 29
    Last Post: 01-16-2018, 02:05 AM
  2. Duplicated data
    By fakhteh in forum Excel Formulas & Functions
    Replies: 3
    Last Post: 02-12-2017, 04:57 PM
  3. [SOLVED] a code line to Modify VBA to copy duplicated to next empty column.-3 sheets
    By david gonzalez in forum Excel Programming / VBA / Macros
    Replies: 3
    Last Post: 08-21-2014, 08:55 PM
  4. Renaming worksheets based on specific cell data, when data may be duplicated
    By Jaricketts in forum Excel Programming / VBA / Macros
    Replies: 6
    Last Post: 05-04-2010, 06:58 PM
  5. Duplicated data
    By bj in forum Excel Formulas & Functions
    Replies: 9
    Last Post: 09-06-2005, 07:05 AM
  6. Duplicated data
    By Louise in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-06-2005, 01:05 AM
  7. [SOLVED] Duplicated data
    By Louise in forum Excel Formulas & Functions
    Replies: 0
    Last Post: 09-05-2005, 11:05 PM

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