Protection.AllowFormattingRows プロパティ (Excel)

保護されたワークシートで行の書式設定が許可されている場合は True を 返します。 読み取り専用の Boolean です。

構文

AllowFormattingRows

Protection オブジェクトを表す変数。

注釈

AllowFormattingRows プロパティは、Protect メソッドの引数を使用して設定できます。

次の使用例は、保護されたワークシートで行の書式化をユーザーが行えるようにして、通知します。

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

サポートとフィードバック

Office VBA またはこの説明書に関するご質問やフィードバックがありますか? サポートの受け方およびフィードバックをお寄せいただく方法のガイダンスについては、Office VBA のサポートおよびフィードバックを参照してください。