Propriedade Protection.AllowFormattingColumns (Excel)

Retorna True se a formatação das células for permitida em uma planilha protegida. Boolean somente leitura.

Sintaxe

expressão. AllowFormattingColumns

Expressão Uma variável que representa um objeto Protection .

Comentários

A propriedade AllowFormattingColumns pode ser definida usando os argumentos do método Protect .

Exemplo

Este exemplo permite ao usuário formatar colunas na planilha protegida e notifica o usuário.

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

Suporte e comentários

Tem dúvidas ou quer enviar comentários sobre o VBA para Office ou sobre esta documentação? Confira Suporte e comentários sobre o VBA para Office a fim de obter orientação sobre as maneiras pelas quais você pode receber suporte e fornecer comentários.