Limpiar Celdas especificas en diferentes hojas de excel vba
Ante todo un gran saludo a todo ustedes expertos por la gran ayuda que nos brindan.
Hiendo a mi pregunta, me gustaría que me ayuden con un código en la que este limpia las celdas especificas de diferentes hojas, quisiera que fuera mas compacto; les adjunto el cogido.
Sub Limpiar_Celdas()
'LIMPIAR CELDAS
Hoja2.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja3.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja4.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja5.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja6.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja7.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja8.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja9.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja10.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja11.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja12.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja13.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja14.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja15.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja16.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja17.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja18.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja19.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja20.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja21.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja22.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja23.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja24.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja24.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja25.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja26.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja27.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja28.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja29.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja30.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja31.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
Hoja32.Select
Range("L6, J19:J24, J45:J50, N9, P9, R9").Select
Selection. ClearContents
End Sub