<html>
    <head>
      <base href="https://bugs.documentfoundation.org/">
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_UNCONFIRMED "
   title="UNCONFIRMED - SheetCellRanges service cant FindAll or ReplaceAll if .Count=1 / simple SheetCellRange also can't."
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=144299">144299</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>SheetCellRanges service cant FindAll or ReplaceAll if .Count=1 / simple SheetCellRange also can't.
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>LibreOffice
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>3.5.2 release
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>All
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>UNCONFIRMED
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>sdk
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>libreoffice-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>jag@psilosoph.de
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="https://bugs.documentfoundation.org/attachment.cgi?id=174779" name="attach_174779" title="the announced attachment">attachment 174779</a> <a href="https://bugs.documentfoundation.org/attachment.cgi?id=174779&action=edit" title="the announced attachment">[details]</a></span>
the announced attachment

If a .FindAll(searchDescriptor) or a .ReplaceAll(searchDescriptor) is called
from a SfheetCellRange service or from a SheetCellRanges service containing
exactly one range (.Count=1) there is no action. 
The foundRanges is Null, and the replacement not executed.

This I recently experienced with LibO V 7.2.0.4, but also trying old versions
(32 bit) I found that even a version as early as 3.5.2 ad the bug.  

I couldn't test with versions in-betwwen, but the heritage version 3.3. was not
afflicted. (AOO 4.1.7 also isn't.)  

Trying the code contained in the attached example should exemplify the bug. 
Run it with only a single range of the first sheet selected --> failure
Select a second range OR the tab of the second sheet in addition --> success.</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>