i want to check the color in the excel sheet if the color matches in multiple cell i want the list of cell range as an output.
@Yoichi @Anil_G
How your excel looks like and what colum or range you want to check also which colour. Please give the context about the requirements.
The excel looks like above i want to check the whole excel sheet and get the cell ranges of green color
- First you get total row of the excel sheet
- Second loop each row and get the color index from specific cell using GetColor = r.Interior.ColorIndex
- then loop each cell of the row see if r.Interior.ColorIndex = GetColor