Skip to content

Commit

Permalink
Revert "Merge pull request #18 from knaou/master"
Browse files Browse the repository at this point in the history
This reverts commit 0ebb4d1, reversing
changes made to 3acf521.
  • Loading branch information
igeta committed Dec 22, 2018
1 parent 0ebb4d1 commit 1a2a4f8
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions vbac.wsf
Expand Up @@ -50,7 +50,6 @@ var xlExcel9795 = 43; //.xls 97-2003 format in Excel 2003 or prev
var xlExcel8 = 56; //.xls 97-2003 format in Excel 2007
var xlExcel12 = 50; //.xlsb
var xlOpenXMLWorkbookMacroEnabled = 52; //.xlsm
var xlOpenXMLAddIn = 55; //.xlam
// AcNewDatabaseFormat
var acNewDatabaseFormatAccess2000 = 9; //.mdb
Expand Down Expand Up @@ -599,12 +598,9 @@ Excel.prototype.createOpenFile = function(xlApp, path) {
case 'xlsb':
xlFileFormat = xlExcel12;
break;
case 'xlsm': case 'xltm':
case 'xlsm': case 'xlam': case 'xltm':
xlFileFormat = xlOpenXMLWorkbookMacroEnabled;
break;
case 'xlam':
xlFileFormat = xlOpenXMLAddIn;
break;
default:
xlFileFormat = (vernum < 12) ? xlExcel9795 : xlOpenXMLWorkbookMacroEnabled;
path += (vernum < 12) ? '.xls' : '.xlsm';
Expand Down

0 comments on commit 1a2a4f8

Please sign in to comment.