<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 - "This command cannot be used on multiple selection" error in XLSM macro (OK in Excel)"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=111833">111833</a>
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>"This command cannot be used on multiple selection" error in XLSM macro (OK in Excel)
          </td>
        </tr>

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

        <tr>
          <th>Version</th>
          <td>6.0.0.0.alpha0+ Master
          </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>Calc
          </td>
        </tr>

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

        <tr>
          <th>Reporter</th>
          <td>baron@caesar.elte.hu
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>btomi96@gmail.com
          </td>
        </tr>

        <tr>
          <th>Depends on</th>
          <td>107902
          </td>
        </tr>

        <tr>
          <th>Blocks</th>
          <td>108897, 108908
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Open the attached Excel spreadsheet with a simple macro, and run the macro.
It's a slightly modified/extended version of <span class=""><a href="http://bugs.documentfoundation.org/attachment.cgi?id=133368" name="attach_133368" title="Sample XLSM that gives error in Calc when run">attachment 133368</a> <a href="http://bugs.documentfoundation.org/attachment.cgi?id=133368&action=edit" title="Sample XLSM that gives error in Calc when run">[details]</a></span> from <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Macro in XLSM gives error in Calc, but runs fine in Excel"
   href="show_bug.cgi?id=107902">bug 107902</a>
with the following changes:
- entries in A2:A5 have been reordered, so the macro doesn't select a
contiguous block for (A, B, C),
- there's an additional "Selection.Copy" line in the macro.

Macro execution fails at that line with the following error:
"BASIC runtime error.
'1'

Type: com.sun.star.uno.RuntimeException
Message: That command cannot be used on multiple selection"

In Excel the macro runs fine.

Occurs in daily build 2017-08-15_01:59:49
(bebaac5eb6ebd2db3e1ea22b1630111343a9c25c) / Windows 7.
Requires commit mentioned in <a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Macro in XLSM gives error in Calc, but runs fine in Excel"
   href="show_bug.cgi?id=107902#c4">bug 107902 comment 4</a> from 2017-08-10.</pre>
        </div>
      </p>

        <div id="referenced">
          <hr style="border: 1px dashed #969696">
          <b>Referenced Bugs:</b>
          <ul>
              <li>
                [<a class="bz_bug_link 
          bz_status_RESOLVED  bz_closed"
   title="RESOLVED FIXED - Macro in XLSM gives error in Calc, but runs fine in Excel"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=107902">Bug 107902</a>] Macro in XLSM gives error in Calc, but runs fine in Excel
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] XLSX (OOXML) bug tracker"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108897">Bug 108897</a>] [META] XLSX (OOXML) bug tracker
              </li>
              <li>
                [<a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [META] Visual Basic for Applications (VBA) macro issues"
   href="https://bugs.documentfoundation.org/show_bug.cgi?id=108908">Bug 108908</a>] [META] Visual Basic for Applications (VBA) macro issues
              </li>
          </ul>
        </div>
        <br>

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

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