Bug 121919 - Basic Runtime Error 423
Summary: Basic Runtime Error 423
Status: RESOLVED INSUFFICIENTDATA
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: LibreOffice (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2018-12-05 12:22 UTC by Tony Donnelly
Modified: 2020-05-29 03:32 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Excel spreadsheet ported from excel and saved as an ODS file. (51.52 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-12-06 12:25 UTC, Tony Donnelly
Details
Screen Shot of failure (140.05 KB, image/jpeg)
2018-12-08 17:50 UTC, Tony Donnelly
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tony Donnelly 2018-12-05 12:22:55 UTC
Description:
I have a spreadsheet ported from Excel which contains Macros. When Libra executes the following command in the macro

ActiveWorkbook.Worksheets("Skip Placings").Sort.SortFields.Clear

it gets the 423 run time error

Steps to Reproduce:
1. Create a macro with this VBA command in it
2.Execute teh macro
3.

Actual Results:
Basic Runtime error 423

Macro stops.

Expected Results:
Should clear the sort fields as in Excel


Reproducible: Always


User Profile Reset: No



Additional Info:
Comment 1 raal 2018-12-06 07:05:50 UTC
Hello,

Thank you for filing the bug. Please send us a sample document, as this makes it easier for us to verify the bug. 
I have set the bug's status to 'NEEDINFO', so please do change it back to 'UNCONFIRMED' once you have attached a document.
(Please note that the attachment will be public, remove any sensitive information before attaching it.)
How can I eliminate confidential data from a sample document?
https://wiki.documentfoundation.org/QA/FAQ#How_can_I_eliminate_confidential_data_from_a_sample_document.3F
Thank you
Comment 2 Tony Donnelly 2018-12-06 12:25:09 UTC
Created attachment 147324 [details]
Excel spreadsheet ported from excel and saved as an ODS file.

Open spreadsheet. Enable macros.

Go to sheet called Session Scores.

Click on Calculate scores in cell Y18.

You get the run time error 423 occurring on the .sort.sortfields.clear command
Comment 3 raal 2018-12-06 12:43:54 UTC
Confirm with LO 6.2master; win7. Do you know if it worked in older version?
Comment 4 Tony Donnelly 2018-12-06 12:56:07 UTC
(In reply to raal from comment #3)
> Confirm with LO 6.2master; win7. Do you know if it worked in older version?

It fails with both LO 6.1.3 and LO 6.2
Comment 5 Xisco Faulí 2018-12-07 23:26:41 UTC
On previous versions, the error is

BASIC runtime error.
'1'

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

in line 102: 'Selection.Copy'

So this macro never worked...
Comment 6 Tony Donnelly 2018-12-08 09:55:05 UTC
It’s not the selection.copy command that is failing. It’s the command

ActiveWorkbook.Worksheets("Skip Placings").Sort.SortFields.Clear

Thank you.

(In reply to Xisco Faulí from comment #5)
> On previous versions, the error is
> 
> BASIC runtime error.
> '1'
> 
> Type: com.sun.star.uno.RuntimeException
> Message: That command cannot be used on multiple selection
> 
> in line 102: 'Selection.Copy'
> 
> So this macro never worked...
Comment 7 Tony Donnelly 2018-12-08 17:49:54 UTC
Attached is the screen shot of when the failure occurs. As you can see it has processed statement 102 and fails on the sort clear command.
Comment 8 Tony Donnelly 2018-12-08 17:50:35 UTC
Created attachment 147388 [details]
Screen Shot of failure

See latest comments
Comment 9 Xisco Faulí 2018-12-08 17:56:40 UTC
On previous versions I meant...
Comment 10 Tony Donnelly 2018-12-14 14:53:22 UTC
Please investigate the failure of command

ActiveWorkbook.Worksheets("Skip Placings").Sort.SortFields.Clear

Screen shot of failure has been attached
Comment 11 Tony Donnelly 2018-12-28 15:04:45 UTC
Can you please investigate this bug as per previous comment or provide me with an update
Comment 12 Xisco Faulí 2019-06-27 16:24:44 UTC
(In reply to Tony Donnelly from comment #11)
> Can you please investigate this bug as per previous comment or provide me
> with an update

You never asked to our question. Did it work on previous versions of LibreOffice ?
Comment 13 Armin Le Grand (allotropia) 2019-10-30 15:38:57 UTC Comment hidden (no-value)
Comment 14 Xisco Faulí 2019-10-30 15:56:48 UTC
Hi Armin,
Was comment 13 meant to be written in bug 121963 instead ?
Comment 15 Armin Le Grand (allotropia) 2019-10-30 16:11:16 UTC Comment hidden (no-value)
Comment 16 Armin Le Grand (allotropia) 2019-10-30 16:13:17 UTC
@Xisco: OOps - yes, sorry. Also the last one. Adding text to the correct bug...
Please ignore comments 13-15 at this task (can these be deleted...?)
Comment 17 QA Administrators 2020-04-28 03:40:47 UTC Comment hidden (obsolete)
Comment 18 QA Administrators 2020-05-29 03:32:47 UTC
Dear Tony Donnelly,

Please read this message in its entirety before proceeding.

Your bug report is being closed as INSUFFICIENTDATA due to inactivity and
a lack of information which is needed in order to accurately
reproduce and confirm the problem. We encourage you to retest
your bug against the latest release. If the issue is still
present in the latest stable release, we need the following
information (please ignore any that you've already provided):

a) Provide details of your system including your operating
   system and the latest version of LibreOffice that you have
   confirmed the bug to be present

b) Provide easy to reproduce steps – the simpler the better

c) Provide any test case(s) which will help us confirm the problem

d) Provide screenshots of the problem if you think it might help

e) Read all comments and provide any requested information

Once all of this is done, please set the bug back to UNCONFIRMED
and we will attempt to reproduce the issue. Please do not:

a) respond via email 

b) update the version field in the bug or any of the other details
   on the top section of our bug tracker

Warm Regards,
QA Team

MassPing-NeedInfo-FollowUp