title: How can we disable delete and rename option of the context menu of excel at the sheet level
body: <p>My requirement is that, I need to <em>disable the Delete and Rename option</em> at the <strong>sheet level</strong> and not at the overall application/workbook level.</p>
  
  <p>I have done the below in the <strong>ThisWorkbook_Startup event of the Workbook.cs</strong> file</p>
  
  <pre><code>Globals.ThisWorkbook.Application.CommandBars["Ply"].Controls["&amp;Delete"].Enabled = false;
  Globals.ThisWorkbook.Application.CommandBars["Ply"].Controls["&amp;Rename"].Enabled = false;
  </code></pre>
  
  <p>But this code is applicable at the overall workbook level. Say I want to perform the same only for Sheet1 and not for other sheets.</p>
  
  <p>How can we do it?</p>
  
  <p>I am using Excel VSTO 2007 and C# is the language</p>
  
  <p>Thanks</p>