cancel
Showing results for 
Search instead for 
Did you mean: 

Detect colored Cells in Excel

NicolasSahli
Level 4

Hi People

I have this task where it needs to be checked if a Cell in excel is colored or not. How can this be solved with Blue Prism? Is the only way to achieve this a self developed code stage or are there other simple work arounds?

 

Thanks in advance!

1 BEST ANSWER

Helpful Answers

herminio217
Level 4

Hi @NicolasSahli , you can filter the Excel file by color here like the example below:

herminio217_1-1736861956693.png

herminio217_4-1736862142656.png

herminio217_3-1736862056506.png

You can use this action in MS Excel VBO the action called "Apply Filter - ByColor" then pass the color value

herminio217_5-1736865556932.png

 

To delete if you have a lot of rows you can got to special to select visible only, also in MS Excel VBO, and use other action to delete

herminio217_6-1736865778972.pngherminio217_7-1736865804138.png

If you want I can explain better about this actions



 

 

 

View answer in original post

3 REPLIES 3

Hello @NicolasSahli 

Yes you need to create a custom code

We can help you.

Do you mean that you want to find the next collored cell ?

herminio217
Level 4

Hi @NicolasSahli , you can filter the Excel file by color here like the example below:

herminio217_1-1736861956693.png

herminio217_4-1736862142656.png

herminio217_3-1736862056506.png

You can use this action in MS Excel VBO the action called "Apply Filter - ByColor" then pass the color value

herminio217_5-1736865556932.png

 

To delete if you have a lot of rows you can got to special to select visible only, also in MS Excel VBO, and use other action to delete

herminio217_6-1736865778972.pngherminio217_7-1736865804138.png

If you want I can explain better about this actions



 

 

 

NicolasSahli
Level 4

Thank you for your Help and Ideas. I ended up just creating a custom code stage which extracts the Value of the Color of the Field.

I did it with that simple line:
ColorValue = GetInstance(ExcelHandle).ActiveCell.Interior.Color