

If it isn't set, semicolon will be used by default

Var excelFilePath = "Test:My Folder:SampleBook.xlsx" excelFilePath - The Mac-specific – colon separated – full path name for the xlsx-file like in the line below:.It works in the same way as the abovementioned counterpart for Windows and was tested in InDesign CC 2015 and Excel 2011 (Version 11) on Mac OS X 10.10 (Yoshemite). Important note: why AppleScript run from JavaScript doesn't work anymore? Important note: if you get the "Cannot create ActiveX Component " error message, run InDesign as administrator to recreate the "Resources for Visual Basic.tlb" file. Here's a sample code illustrating how to use it. Promise that such a perverted script would work.) So I've found the I tried to make a moreĮlegant solution, but it didn't work for some reason: it worked perfectlyĪs a stand alone visual basic script run in VBA, but failed when triggeredįrom JavaScript via doScript method. Number is unavailable) the script breaks the loop. Spreads to try to open, and once an error occurs (the spread with the

The VBS-code has a try-catch block so you can set a maximum number of Recommend you to useĪllows you to get the data from all spreadsheets in a workbook.Īlso, it gets the name of the spreadsheet. I posted all two versions I developed so far. Here’s a practical example: a script that uses this function. It’s possible to reference a spreadsheet by name instead of a number by using a name enclosed with escaped double quotes (inch marks) like so: The same data transfered to InDesign as Array If it isn't set, the first worksheet will be used by default
