title: Disable the Save As Button in Word 2010
body: <p>I have the following code that should disable the Save As button in Word 2010. The method below is being called in the <code>Document_Startup</code> event:</p>
  
  <pre><code>private void DisableSaveAsButton()
  {
      Object MenuBar = 40;
      Object FileMenu = 1;
      Object SaveAsButton = 5;
      var saveAsBtn = this.ThisApplication.CommandBars[MenuBar].Controls[FileMenu].accChild[SaveAsButton] as CommandBarButton;
      saveAsBtn.Enabled = false;
  }
  </code></pre>
  
  <p>I am expecting the Save as Button to be grayed out, but it isn't and it still functions. What am I doing wrong?</p>