Hello All,
I have just looked through most of the postings I could find on the board regarding VBA to identify duplicates. Virtually all of these use the entire column when checking for duplicates.
I am after code which will identify duplicates in column A within a contiguous range of data.
For example there is a heading in column B and below this photo details will be entered and in the next column the photo number is entered.
Finally a number (for sorting) is entered in column A. The photos will be numbered 1 to whatever. So I need code which will highlight duplicates in that contiguous range of data.
Then there is one or two blank rows before another batch of photo details are entered. This means the same sorting numbers are used and are separated by a blank row or rows.
Can someone help me with some code which will make the fill red and when the duplicated has been corrected the fill colour is removed.
Thanking you in advance.
Regards,
Dave T
I have just looked through most of the postings I could find on the board regarding VBA to identify duplicates. Virtually all of these use the entire column when checking for duplicates.
I am after code which will identify duplicates in column A within a contiguous range of data.
For example there is a heading in column B and below this photo details will be entered and in the next column the photo number is entered.
Finally a number (for sorting) is entered in column A. The photos will be numbered 1 to whatever. So I need code which will highlight duplicates in that contiguous range of data.
Then there is one or two blank rows before another batch of photo details are entered. This means the same sorting numbers are used and are separated by a blank row or rows.
Can someone help me with some code which will make the fill red and when the duplicated has been corrected the fill colour is removed.
Thanking you in advance.
Regards,
Dave T
DUPLICATES - Many Macros.xls | ||||||
---|---|---|---|---|---|---|
A | B | C | D | |||
29 | PN3215 | |||||
30 | 1 | SOUTHERNAPPROACH | 9107 | |||
31 | 3 | NORTHERNAPPROACH | 9105 | |||
32 | 2 | GENERALUNDERSIDEOFWESTERNSTONEARCH | 9111 | |||
33 | 1 | WESTERNELEVATION | 9104 | |||
34 | 3 | GENERALUNDERSIDE | 9110 | |||
35 | ||||||
36 | PN7583 | |||||
37 | 1 | SOUTHERNAPPROACH | 9111 | |||
38 | 2 | NORTHERNAPPROACH | 9112 | |||
39 | 1 | GENERALUNDERSIDE | 9113 | |||
Sheet 9 |