Propiedad Protection.AllowFormattingRows (Excel)

Devuelve True si está permitido aplicar formato a las filas de una hoja de cálculo protegida. Boolean de solo lectura.

Sintaxis

expresión. AllowFormattingRows

Expresión Variable que representa un objeto Protection .

Comentarios

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

Ejemplo:

Este ejemplo permite al usuario aplicar formatos a las filas de la hoja de cálculo protegida y se lo comunica al usuario.

Sub ProtectionOptions() 
 
 ActiveSheet.Unprotect 
 
 ' Allow rows to be formatted on a protected worksheet. 
 If ActiveSheet.Protection.AllowFormattingRows = False Then 
 ActiveSheet.Protect AllowFormattingRows:=True 
 End If 
 
 MsgBox "Rows can be formatted 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.