I’m using Filter from the Modern Excel Activities to filter a column for a certain value and then I use a For Each Excel Row activity and an If Condition to check the following:
Then I’m trying to highlight the empty cells in each current row using Format Cells for column “G” + CurrentIndex.ToString.
The problem is since I have a filter on my data the row numbering is off and random (Ex. Rows go 1, 4, 5, 8, etc.) and my highlighting thus is thrown off.
Is there a way to account for a filter when using CurrentIndex and CurrentRow to fix this issue?
One simple way would be instead of loop…filter on empty values also…then inside loop you can just pass currentrow.Address to get rhe current row address feomwhich you can extract the row number if needed as well and color
CurrentRow.Address will give you the address of the current item inside for eqch row in excel
You can apply filter for blank values also and then use format cells inside instead of if condition inside loop…this reduces the number of items further less and no if condition is needed