Dim c As Range, cunion As Range For Each c In Sheets("Feuil1").UsedRange.Rows If c.Hidden = True Then If cunion Is Nothing Then Set cunion = c Else Set cunion = Application.Union(c, cunion) End If End If Next c If Not cunion Is Nothing Then cunion.EntireRow.Delete ' ou toute autre instruction, à ta guise, bien sûr, modifiant ces lignes (y compris pour les montrer) End If
Vous n’avez pas trouvé la réponse que vous recherchez ?
Posez votre questionDim c As Range For Each c In Sheets("Feuil1").UsedRange.Rows If c.Hidden = True Then MsgBox c.Address c.EntireRow.Delete End If Next c