Sets or returns the name of the worksheet. Sheet names are limited to 255 characters and must not contain the following characters: \ / ? [ ] : '

<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 System.String Name{ get; set; }
</pre></td></tr></table>
<p>Public Property Name() As String</p>

If you change a worksheet's name, any formulas that reference that worksheet will also be updated to use the new name. For example, if you have a formula "=Sheet1!A1", and you change Sheet1's name to "NewName", the formula will be updated to "=NewName!A1". If the formula did not reference a sheet name before the name change, it will not be affected.


          //--- Get SheetName
          string sheetName = ws.Name;

          //--- Set SheetName
          ws.Name = "SheetOne";
        

          '--- Get SheetName
          Dim sheetName As String = ws.Name

          '--- Set SheetName
          ws.Name = "SheetOne"