title: Check if Excel is in dirty state
body: <p>Is there any way I can know if Excel is in dirty state or not.</p>
  
  <p>By dirty state I mean:-
  When you do anything on Excel and close save button - Excel asks you to save the file.
  So there must be some flag which is set when the file is edited.</p>
  
  <p>Can I know the status of an Excel file through C# code?</p>
  
  <p>Searched a lot, but not much help is available. One option is there which allows you to know if Excel is in edit state or not by looking at <code>GetRibbonControlEnabled("FileNewDefault")</code></p>
  
  <p>In this case you can see if Excel is in edit state only at the time when you execute this method.</p>
  
  <p>What if I want to know if Excel was edited/made dirty since the time it was open.</p>
  
  <p>Please don't advice to start to background thread which keeps looking if Excel was in edit mode by using the above function.</p>
  
  <p>An help will be extremely appreciated.</p>