Sets or returns the password hash that is used to protect the workbook.

<table class="wysiwyg-macro" data-macro-name="unmigrated-wiki-markup" style="background-image: url(/plugins/servlet/confluence/placeholder/macro-heading?definition=e3VubWlncmF0ZWQtd2lraS1tYXJrdXB9&amp;locale=en_GB&amp;version=2); background-repeat: no-repeat;" data-macro-body-type="PLAIN_TEXT"><tr><td class="wysiwyg-macro-body"><pre>
 public int ProtectPasswordHash{ get; set; }
</pre></td></tr></table>
<p>Public Property ProtectPasswordHash() As Integer</p>

          //--- Get the ProtectPasswordHash value for the workbook
          int passwordHash = wb.ProtectPasswordHash;

          //--- Set the ProtectPasswordHash value for the workbook
          wb.ProtectPasswordHash = 12345
        

          '--- Get the ProtectPasswordHash value for the workbook
          Dim passwordHash As Integer = wb.ProtectPasswordHash

          '--- Set the ProtectPasswordHash value for the workbook
          wb.ProtectPasswordHash = 12345