Macros para Limpiar Celdas especificas en diferentes hojas de excel
Ante todo un gran saludo a todos ustedes expertos, por la gran ayuda que nos brindan.
Hiendo a mi pregunta, ¿Podría ser mas simple el código de mi macros para el limpiado de celdas en diferentes hojas; mi libro cuenta con 30 hojas... Le adjunto la Macros.
Sub 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
¡Gracias! Por la respuesta que me puedas dar.