<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - EDITING: sheet local named ranges become corrupt during deletion of sheet"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123724#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - EDITING: sheet local named ranges become corrupt during deletion of sheet"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=123724">bug 123724</a>
              from <span class="vcard"><a class="email" href="mailto:prusselltechgroup@gmail.com" title="russell <prusselltechgroup@gmail.com>"> <span class="fn">russell</span></a>
</span></b>
        <pre>Ran into this also at 6.2.2.2 with a larger spreadsheet, but narrowed it down
to:

Steps to recreate:

1. Open Calc and create a new spreadsheet (Sheet1). Update 3 cells:

    A1: "Label"

    B1: "text data numbers"

        Name B1 via the Named Box to "TestData". 
        Select Manage Names and change scope from Global to Sheet1

    A2: =TestData

2. Right click Sheet1 > Insert Sheet

3. Right click Sheet2 > Delete Sheet > Yes

Sheet1 Before:
Label text data numbers
text data numbers

Sheet1 After:
Label text data numbers
#NAME? 

I was able to repeat this. In addition, if I delete Sheet1 (rather than Sheet2,
as above), the named cell becomes orphaned.

1 & 2. Same as above.

3. Delete Sheet1 rather than Sheet2

   The named cell "TestData" is visible in the dropdown. 
   If you select it in the Name Box, an informational dialog pops-up, 
   "You must enter a valid reference or type a valid name for the 
   selected range.". If you click Managed Names, there are no names in the
list. 
   The name appears to be orphaned.</pre>
        </div>
      </p>


      <hr>
      <span>You are receiving this mail because:</span>

      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>