Hi All,
I would like to count the number of black cells for each row in the sheet (I have multiple sheets in the workbook), then print this value in the last column.
I have this code, which is not very practical (I think I need to generalize it to loop through all rows and all worksheets)
Thank in advance for your help.![]()
Sub CountBlank() Dim ws As Worksheet Set ws = Worksheets("March") ws.Range("CW2") = Application.WorksheetFunction.CountBlank(ws.Range("C2:CV2")) End Sub
Bookmarks