Salut Sirbaf,
Salut 3GB,
Sirbaf demandait bien un décompte des cellules en [A:A] à fond blanc... devenues bleues ?
M'étonnerait que ce soit aussi simple, finalement...
Private Sub Workbook_Open()
'
Dim sWk As Worksheet, iIdx%
'
Application.ScreenUpdating = False
Set sWk = Worksheets("Compilation")
sWk.Cells.Delete
'
For x = 1 To Sheets.Count
If Sheets(x).Name <> "Compilation" Then
iIdx = 0
With Sheets(x)
For y = 1 To .Range("A" & Rows.Count).End(xlUp).Row
If .Range("A" & y).Interior.Color = RGB(0, 176, 240) Then iIdx = iIdx + 1
Next
End With
If iIdx > 0 Then _
iRow = sWk.Range("A" & Rows.Count).End(xlUp).Row + 1: _
sWk.Range("A" & iRow).Resize(1, 2).Value = Array(Sheets(x).Name, CStr(iIdx))
End If
Next
'
sWk.Activate
[A1].Resize(1, 2).Value = Array("Feuilles", "Nb")
[A1].Font.Bold = True
[A1].Interior.Color = RGB(215, 215, 215)
[B1].Interior.Color = RGB(0, 176, 240)
[A1].CurrentRegion.Borders.LineStyle = xlContinuous
Columns.AutoFit
'
Application.ScreenUpdating = True
'
End Sub
A+