Kaydet (Commit) fc434c8f authored tarafından bvarga91's avatar bvarga91 Kaydeden (comit) László Németh

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/57030Reviewed-by: 's avatarLászló Németh <nemeth@numbertext.org>
Tested-by: 's avatarLászló Németh <nemeth@numbertext.org>
üst 7eba8e98
...@@ -169,6 +169,7 @@ ScVbaWorkbooks::isSpreadSheetFile( const OUString& sType ) ...@@ -169,6 +169,7 @@ ScVbaWorkbooks::isSpreadSheetFile( const OUString& sType )
{ {
// include calc_QPro etc. ? ( not for the moment anyway ) // include calc_QPro etc. ? ( not for the moment anyway )
return sType.startsWith( "calc_MS" ) return sType.startsWith( "calc_MS" )
|| sType.startsWith( "MS Excel" )
|| sType.startsWith( "calc8" ) || sType.startsWith( "calc8" )
|| sType.startsWith( "calc_StarOffice" ); || sType.startsWith( "calc_StarOffice" );
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment