Protection.AllowInsertingRows プロパティ (Excel)

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

構文

AllowInsertingRows

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

注釈

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

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

Sub ProtectionOptions() 
 
 ActiveSheet.Unprotect 
 
 ' Allow rows to be inserted on a protected worksheet. 
 If ActiveSheet.Protection.AllowInsertingRows = False Then 
 ActiveSheet.Protect AllowInsertingRows:=True 
 End If 
 
 MsgBox "Rows can be inserted on this protected worksheet." 
 
End Sub

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

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