Featured Replies
Archivado
Este tema está ahora archivado y está cerrado a más respuestas.
A better way to browse. Learn more.
A full-screen app on your home screen with push notifications, badges and more.
Este tema está ahora archivado y está cerrado a más respuestas.
Buenas tardes,
Perdonad mi ignorància en excel pero he creado un boton para ocultar y mostrar hojas. He puesto en el VBA la macro pero supongo que la he escrito mal, me gustaría que alguien con mas conocimientos que yo me pudiera ayudar,
Me pone el siguiente error: Se ha producido el error 9 en tiempo de ejecución:
Subíndice fuera de intervalo
gracias
Sub MostraryOcultarHojas() Sheets("Hoja10").Visible = False Sheets("Hoja11").Visible = False Sheets("Hoja12").Visible = False Sheets("Hoja13").Visible = False Sheets("Hoja14").Visible = False Sheets("Hoja3").Visible = False Sheets("Hoja5").Visible = False Sheets("Hoja6").Visible = False Sheets("Hoja7").Visible = False Sheets("Hoja8").Visible = False Sheets("Hoja9").Visible = False Sheets("Hoja1").Visible = True Sheets("Hoja2").Visible = True Sheets("Hoja4").Visible = True Sheets("Sheet1").Visible = True End Sub