I am working on C# VSTO (Visual Studio Tools for Office) Excel.
I have column “C” which is having around 30 values from C1 to C30. I can take these values in the list.
I want to accomplish 2 tasks:
- Detect duplicate elements in the whole column.
- Print cell no. of the both the elements (duplicate). e.g.: If C12 and C28 have same element I need to print the “C12” and “C28”.
What can be the fastest way to do this?
Pseudocode, untested: (!!!)