https://bugs.documentfoundation.org/show_bug.cgi?id=90278

            Bug ID: 90278
           Summary: VBA Compatibility - Regression on
                    Range().Borders().Weight()
           Product: LibreOffice
           Version: 4.3.0.4 release
          Hardware: Other
                OS: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: medium
         Component: BASIC
          Assignee: [email protected]
          Reporter: [email protected]

Created attachment 114398
  --> https://bugs.documentfoundation.org/attachment.cgi?id=114398&action=edit
Simple VBA Macro to trigger  Range().Borders().Weight() regression

Steps to reproduce

1. Open Attached file VBARegression.xls. This file has been created with MS
Office 2007

2. Activate Macros if asked to. 

3. Click on the button

Expected result : Borders must be re-drawn

Result on LibreOffice 4.1.4.2 (Windows) : Ok 
Result on LibreOffice  4.2.0.1 (Windows) : Ok
Result on LibreOffice 4.3.0.1 (Windows) : "Erreur d'exécution BASIC. '1' .
Type: com.sun.star.uno.RuntimeException Message: Method failed."
Code to blame for the error:  ".Borders(xlEdgeBottom).Weight = 2"  
Result on LibreOffice 4.3.6.2 (Windows) : Same error.
Result on LibreOffice 4.4.1.2 (Linux) : Same error


Additionnal info : 

The macro behaves as expected if the border is not initialy drawn :(see file
VBARegression_NoBorder.xls).

-- 
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Libreoffice-bugs mailing list
[email protected]
http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs

Reply via email to