I need some help.
What I need is a code for colorid the Grid in Excel in this way:
- find the first cell with value ( 1 )
- find the last cell with value ( 2 )
- range (1:2)
- Color the grid black
My code by now:
'Color the columns A to K and ALL the rows below, no matter if they have a value or not.
xlWorkSheet.Range(xlWorkSheet.Cells(1, 1), xlWorkSheet.Cells(xlWorkSheet.Rows.Count, 11)).Borders.ColorIndex = 0
I need to change the color of not-empty rows .
THX