Sets or returns whether Excel will recommend - when the workbook is opened - that it be viewed in read-only mode.

<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 boolean ReadOnlyRecommended{ get; set; }
</pre></td></tr></table>
<p>Public Property ReadOnlyRecommended() As Boolean</p>

          //--- Get the ReadOnlyRecommended value for the workbook
          bool readOnlyRec = wb.ReadOnlyRecommended;

          //--- Set the ReadOnlyRecommended value for the workbook
          wb.ReadOnlyRecommended = true;
        

          '--- Get the ReadOnlyRecommended value for the workbook
          Dim readOnlyRec As Boolean = wb.ReadOnlyRecommended

          '--- Set the ReadOnlyRecommended value for the workbook
          wb.ReadOnlyRecommended = True