Share via


Propriedade Protection.AllowFormattingRows (Excel)

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

Sintaxe

expressão. AllowFormattingRows

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

Comentários

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

Exemplo

Este exemplo permite ao usuário inserir linhas na planilha protegida e notifica o usuário.

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

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.