Propiedad Protection.AllowFormattingColumns (Excel)
Devuelve True si está permitido aplicar formato a las columnas en una hoja de cálculo protegida. Boolean de solo lectura.
Sintaxis
expresión. AllowFormattingColumns
Expresión Variable que representa un objeto Protection .
Comentarios
La propiedad AllowFormattingColumns se puede establecer mediante los argumentos del método Protect .
Ejemplo:
Este ejemplo permite al usuario aplicar formatos a las columnas de la hoja de cálculo protegida y se lo comunica al usuario.
Sub ProtectionOptions()
ActiveSheet.Unprotect
' Allow columns to be formatted on a protected worksheet.
If ActiveSheet.Protection.AllowFormattingColumns = False Then
ActiveSheet.Protect AllowFormattingColumns:=True
End If
MsgBox "Columns 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.