Ray Ang

Greenhorn
+ Follow
since Jan 31, 2023
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Ray Ang

Hi guys,
I am new for doing Excel VBA coding. And I would like to write a simple coding which is highlight the duplicate number

If my ShpMarkLog(test) worksheet SMOrder_No = TALLY-SHEET Order No.
Then If my ShpMarkLog(test) worksheet SMNewCTNno = TALLY-SHEET (Column H8 TO AK103) Then Hightlight the duplicate number.
Then If the TALLY-SHEET (Column H8 TO AK103) is blank, then put white color with blank.

But when the system didn't follow my criteria, which is only highlight the number if the SMOrder_No = Order No. Below is my coding.


Sample Picture.
https://ibb.co/FYH6FCV
https://ibb.co/DMnb8RY

Sample Excel Link.
https://docs.google.com/spreadsheets/d/1hiEIEwQIobUNMj-b3E8Gr-aIeFB14DcN/edit?usp=share_link&ouid=113728469994646825003&rtpof=true&sd=true

I Want to make the number only highlight duplicate when the criteria is meet. May I know how should I modify the code in order to get my result. Really really thank you.

1 year ago