Script to insert a formatted Excel table not working
I have been attempting to write a script to insert a formatted Excel table - ideally to run without displaying the options dialog. However, changing the TableFormattingOptions to excelFormattedTable seems to have no effect.
Here is the script extract in question:
app.excelImportPreferences.tableFormatting = TableFormattingOptions.EXCEL_FORMATTED_TABLE;
alert(app.excelImportPreferences.tableFormatting);
myTextFrame.place(myFile,true);
When running the script, the alert shows the tableFormatting has been set to EXCEL_FORMATTED_TABLE:

However the options dialog shows the Formatting option remains as Unformatted Table.

Incidently, when I set tableFormatting to TableFormattingOptions.EXCEL_UNFORMATTED_TABLE, it does work as I would expect.
Am I doing something incorrectly, or is this a bug? If so is there a work around, or do I just have to rely on using the options dialog?