You are on page 1of 1

Sub proteger()

Pass = InputBox("ingresa la contraseña", "A")

For Each Hoja In ThisWorkbook.Sheets

Hoja.Protect Password:=Pass

Next Hoja

End Sub

Sub desproteger()

Pass = InputBox("ingresa la contraseña", "A")

For Each Hoja In ThisWorkbook.Sheets

Hoja.Unprotect Password:=Pass

Next Hoja

End Sub

You might also like