From fc434c8fd62ccb6d083af075f1ab83da6bd76b8d Mon Sep 17 00:00:00 2001 From: bvarga91 Date: Thu, 5 Jul 2018 23:14:01 +0200 Subject: tdf#118153 VBA Macro: add XLSX support to Workbooks.Open MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit by accepting "MS Excel 2007 XML" in isSpreadSheetFile(). Test example: Workbooks.Open Filename:="/tmp/test.xlsx" Change-Id: Id7102325c96842bb413b1fb7bb8162e8bca41f4e Reviewed-on: https://gerrit.libreoffice.org/57030 Reviewed-by: László Németh Tested-by: László Németh --- sc/source/ui/vba/vbaworkbooks.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx index 03be645b2487..9ca8f9610eea 100644 --- a/sc/source/ui/vba/vbaworkbooks.cxx +++ b/sc/source/ui/vba/vbaworkbooks.cxx @@ -169,6 +169,7 @@ ScVbaWorkbooks::isSpreadSheetFile( const OUString& sType ) { // include calc_QPro etc. ? ( not for the moment anyway ) return sType.startsWith( "calc_MS" ) + || sType.startsWith( "MS Excel" ) || sType.startsWith( "calc8" ) || sType.startsWith( "calc_StarOffice" ); } -- cgit v1.2.3