summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbvarga91 <balazs.varga991@gmail.com>2018-07-05 23:14:01 +0200
committerAndras Timar <andras.timar@collabora.com>2018-09-12 08:24:11 +0200
commitc53039f58b4886c7ff4fb76a8e6f41a356e38083 (patch)
treebd6e34875a00a7daa08656dff43fe3b0d6cd48ab
parent018f3447175227f14ddad77f68c9fbb2145a0dd2 (diff)
tdf#118153 VBA Macro: add XLSX support to Workbooks.Open
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 <nemeth@numbertext.org> Tested-by: László Németh <nemeth@numbertext.org> (cherry picked from commit fc434c8fd62ccb6d083af075f1ab83da6bd76b8d)
-rw-r--r--sc/source/ui/vba/vbaworkbooks.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sc/source/ui/vba/vbaworkbooks.cxx b/sc/source/ui/vba/vbaworkbooks.cxx
index 1fd605d8b972..22dc4a017119 100644
--- a/sc/source/ui/vba/vbaworkbooks.cxx
+++ b/sc/source/ui/vba/vbaworkbooks.cxx
@@ -170,6 +170,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" );
}