My script is supposed to create a page in Indesign, then create a text frame on that page, and finally import an Excel spreadsheet into that text frame. It works, except that it will only import the first page of the Excel doc, regardless of how I set the preferences. I've tried it with sheeName and sheetIndex, with no success.
the script:
var doc = app.activeDocument;
var myPage = doc.pages.add();
var myFrame = myPage.textFrames.add();
with (app.excelImportPreferences)
{
sheetIndex = 2;
}
var myExcelFile = File.openDialog("Please select an Excel file","*.xlsx");
var myLink = myPage.place( myExcelFile )