title: Excel VBA - Check if a worksheet is protected WITH A PASSWORD
body: <p>We can check if a sheet is protected using ProtectContents property. But how check if it is protected with a password?</p>
  
  <pre><code>if ws.ProtectContents then
      ''do something
  end if 
  </code></pre>