https://bugs.freedesktop.org/show_bug.cgi?id=45987
--- Comment #2 from GALLEY <[email protected]> 2012-05-03 10:31:56 PDT --- An error occurs when deleting sheets using a LibreOffice Basic macro. No problem when using LibreOffice V 3.3.4 or OpenOffice 3.3.0 Os: Windows VISTA LibreOffice version 3.5.3 Steps to reproduce: Add the following macro in a new spreadsheet document: Sub TestRemove Dim StrNameOfSheet as String Dim LgNumberOfSheets as Long LgNumberOfSheets = ThisComponent.sheets.count If LgNumberOfSheets >= 2 then 'Deleting sheets For j = LgNumberOfSheets - 1 To 1 Step -1 StrNameOfSheet = ThisComponent.sheets.ElementNames(j) ThisComponent.sheets.RemoveByName(StrNameOfSheet) Next j Endif end sub Execute the macro. The following exception occurs: Type: com.sun.star.uno.RuntimeException Message : [msci_uno bridge error] UNO type of C++ exception unknown: “std.out_of_of_range”, RTTI-name=”.?AVout_of_range@std@@”!. The following procedure will avoid the exception: Before running the macro, add manually a new sheet. -- Configure bugmail: https://bugs.freedesktop.org/userprefs.cgi?tab=email ------- 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
