How to set Excel Import Preferences in InDesign CS6 using extendscript? -
It seems that it should be really simple, but for some reason I can not work it at all. The following code has no effect:
function setXCellImportProjects () {with (app.excelImportPreferences) {rangeName = "A1: Z300"; SheetName = "whatever"; Table formatting = tableformattingopause. Axel formattable; }} And this does not work either:
function setXCellImportProjects () {with (app.excelImportPreferences) {app.excelImportPreferences.rangeName = "A1: Z300"; App.excelImportPreferences.sheetName = "whatever"; App.excelImportPreferences.tableFormatting = tableformattingoptionsexcelformattable; }} What am I doing wrong? I have made all the goals, and I am at the end of my mind (note: I have edison CS6, version 8.0)
Edit: Put in a bracket that I accidentally leave when copying and pasting Had given.
I'm not familiar with these settings, but you think a bracket is missing. Get rid of all the syntax from the syntax and try
set the XXExportProfs () {app.excelImportPreferences.rangeName = "A1: Z300"; App.excelImportPreferences.sheetName = "whatever"; App.excelImportPreferences.tableFormatting = tableformattingoptionsexcelformattable; }
Comments
Post a Comment