Sub BorrarCeldasSinColor()Application.ScreenUpdating
For Each cell In Range("J19:IM19,J22:IM22,J25:IM25,J28:IM28,J31:IM31,J37:IM37,J40:IM40,J43:IM43,J49:IM49,J55:IM55,J55:IM55,J61:IM61")
If cell.Interior.ColorIndex = xlNone Then [COLOR=#ff0000][B]cell = ""[/B][/COLOR]
Next
End Sub
[/CODE]
es un 90% mas rápido que este:
[CODE]
Sub BorrarCeldasSinColor()
Application.ScreenUpdating
For Each cell In Range("J19:IM19,J22:IM22,J25:IM25,J28:IM28,J31:IM31,J37:IM37,J40:IM40,J43:IM43,J49:IM49,J55:IM55,J55:IM55,J61:IM61")
If cell.Interior.ColorIndex = xlNone Then [B][COLOR=#ff0000]cell.ClearContents[/COLOR][/B]
Next
End Sub
[/CODE]
Se admiten opiniones.
Saludos
Featured Replies
Archivado
Este tema está ahora archivado y está cerrado a más respuestas.
Este código:
es un 90% mas rápido que este:
Sub BorrarCeldasSinColor()
Application.ScreenUpdating
For Each cell In Range("J19:IM19,J22:IM22,J25:IM25,J28:IM28,J31:IM31,J37:IM37,J40:IM40,J43:IM43,J49:IM49,J55:IM55,J55:IM55,J61:IM61")
If cell.Interior.ColorIndex = xlNone Then [B][COLOR=#ff0000]cell.ClearContents[/COLOR][/B]
Next
End Sub
[/CODE]
Se admiten opiniones.
Saludos