Per Ogni cella in Intervallo Se lo sfondo della cella non è colorato Allora Cancella il suo contenuto Fine Se Successiva cella
Sub Cancella_Non_Colorate() Dim ur As Long Dim rng As Range Dim cella As Range ur = Cells(Rows.Count, 1).End(xlUp).Row Set rng = Range("B1:U" & ur) Application.ScreenUpdating = False For Each cella In rng If cella.Interior.ColorIndex = xlNone Then cella.ClearContents End If Next cella Application.ScreenUpdating = True End Sub
Sub prova() Range("a1").CurrentRegion.Select End Sub
Sub prova1() ActiveSheet.UsedRange.Select End Sub