Bug 122681 - LineStyle can't be read and set using VBA
Summary: LineStyle can't be read and set using VBA
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: BASIC (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Macro-VBA
  Show dependency treegraph
 
Reported: 2019-01-12 21:10 UTC by Gunnar
Modified: 2024-04-11 03:13 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
test file (7.85 KB, application/vnd.oasis.opendocument.spreadsheet)
2020-04-10 05:25 UTC, raal
Details
Help About LibreOffice (155.19 KB, image/png)
2022-04-11 11:03 UTC, Gunnar
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gunnar 2019-01-12 21:10:58 UTC
Formatting a worksheet using VBA fails when using the LineStyle property.
Whatever linestyle, reading the property always return the value 1.
Setting the property doesn't change the linestyle.
Example: Range("B2").Borders(xlEdgeBottom).LineStyle = xlContinuous
Comment 2 raal 2019-01-13 09:33:18 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 3 QA Administrators 2020-02-26 02:47:07 UTC Comment hidden (obsolete)
Comment 4 Gunnar 2020-02-26 12:04:15 UTC
Try this code (nothing happens):

sub Test
	Range("B2:C4").Borders(xlEdgeBottom).LineStyle = xlContinuous
End Sub
Comment 5 QA Administrators 2020-02-27 02:46:42 UTC Comment hidden (obsolete)
Comment 6 raal 2020-04-10 05:25:58 UTC
Created attachment 159463 [details]
test file
Comment 7 raal 2020-04-10 05:28:52 UTC
confirm with Version: 7.0.0.0.alpha0+
Build ID: 95dbfd517240666e5b9a9fd7ac1d47d799235a62
CPU threads: 4; OS: Linux 4.15; UI render: default; VCL: gtk3;
Comment 8 QA Administrators 2022-04-11 03:31:09 UTC Comment hidden (obsolete)
Comment 9 Gunnar 2022-04-11 11:03:54 UTC
Created attachment 179456 [details]
Help About LibreOffice

The bug is not fixed
Comment 10 QA Administrators 2024-04-11 03:13:24 UTC
Dear Gunnar,

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