[Libreoffice-bugs] [Bug 111833] New: "This command cannot be used on multiple selection" error in XLSM macro (OK in Excel)
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Tue Aug 15 23:27:54 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=111833
Bug ID: 111833
Summary: "This command cannot be used on multiple selection"
error in XLSM macro (OK in Excel)
Product: LibreOffice
Version: 6.0.0.0.alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: Calc
Assignee: libreoffice-bugs at lists.freedesktop.org
Reporter: baron at caesar.elte.hu
CC: btomi96 at gmail.com
Depends on: 107902
Blocks: 108897, 108908
Open the attached Excel spreadsheet with a simple macro, and run the macro.
It's a slightly modified/extended version of attachment 133368 from bug 107902
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 bug 107902 comment 4 from 2017-08-10.
Referenced Bugs:
https://bugs.documentfoundation.org/show_bug.cgi?id=107902
[Bug 107902] Macro in XLSM gives error in Calc, but runs fine in Excel
https://bugs.documentfoundation.org/show_bug.cgi?id=108897
[Bug 108897] [META] XLSX (OOXML) bug tracker
https://bugs.documentfoundation.org/show_bug.cgi?id=108908
[Bug 108908] [META] Visual Basic for Applications (VBA) macro issues
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170815/53899df6/attachment.html>
More information about the Libreoffice-bugs
mailing list