Propiedad Protection.AllowInsertingRows (Excel)

Devuelve True si está permitida la inserción de filas en una hoja de cálculo protegida. Boolean de solo lectura.

Sintaxis

expresión. AllowInsertingRows

Expresión Variable que representa un objeto Protection .

Comentarios

La propiedad AllowInsertingRows se puede establecer mediante los argumentos del método Protect .

Ejemplo:

Este ejemplo permite al usuario insertar filas en la hoja de cálculo protegida y se lo comunica al usuario.

Sub ProtectionOptions() 
 
 ActiveSheet.Unprotect 
 
 ' Allow rows to be inserted on a protected worksheet. 
 If ActiveSheet.Protection.AllowInsertingRows = False Then 
 ActiveSheet.Protect AllowInsertingRows:=True 
 End If 
 
 MsgBox "Rows can be inserted on this protected worksheet." 
 
End Sub

Soporte técnico y comentarios

¿Tiene preguntas o comentarios sobre VBA para Office o esta documentación? Vea Soporte técnico y comentarios sobre VBA para Office para obtener ayuda sobre las formas en las que puede recibir soporte técnico y enviar comentarios.