Bug 100634 - macro syntax error causes infinite loop and cant close file
Summary: macro syntax error causes infinite loop and cant close file
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
5.1.2.2 release
Hardware: x86-64 (AMD64) Windows (All)
: medium normal
Assignee: Not Assigned
URL: https://msdn.microsoft.com/en-us/libr...
Whiteboard:
Keywords: filter:xls
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2016-06-27 06:05 UTC by Tim Chambers
Modified: 2023-04-19 23:31 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
file won't open successfully with calc (823.76 KB, application/vnd.ms-excel.sheet.macroEnabled.12)
2016-06-27 06:05 UTC, Tim Chambers
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Tim Chambers 2016-06-27 06:05:02 UTC
Created attachment 125934 [details]
file won't open successfully with calc

Attempting to open this macro enabled file results in the following error:

BASIC syntax error.
If not allowed outside a procedure.

error will not close and instance of Libre Office needed to be killed externally (using task manager)

The file opens successfully in Microsoft office 2013.
Comment 1 Julien Nabet 2016-06-27 19:34:22 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.
It seems LO doesn't accept this kind of instruction (directive):
#If Win64 And VBA7 Then
Comment 2 Julien Nabet 2016-06-27 19:57:15 UTC
If you remove the directives (and so have to decide to keep 32 or 64 bits parts), it seems ok (at least no more popups).
Of course, it's just a workaround.
Comment 3 QA Administrators 2017-09-01 11:15:22 UTC Comment hidden (obsolete)
Comment 4 Tim Chambers 2017-09-04 02:03:04 UTC
Tested on WIn 10, Calv version 5.4.0.3

Enabling macros and opening the document gives the following error popup window which won't go away (click OK and it just pops up again)

BASIC syntax error.
Unexpected symbol: ???.


Still have to kill the program from task manager
Comment 5 QA Administrators 2018-09-05 02:54:30 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-04-18 03:47:50 UTC Comment hidden (obsolete, spam)
Comment 7 QA Administrators 2023-04-19 03:24:05 UTC
Dear Tim Chambers,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug