Share via

broken script

Anonymous
2015-12-07T18:43:26+00:00

this script worked with v 11.5.9; doesn't work with v 15.15

tell application "Microsoft Excel"

open file "Macintosh HD:Users:sam:Desktop:pantrash:newtargetinv.xls"

tell workbook 1

tell sheet 1

save in "Macintosh HD:Users:sam:Desktop:pantrash:newtargetinv.csv" as CSV file format

end tell

close without saving

end tell

end tell

the error is error "Microsoft Excel got an error: Parameter error."

the parameter in question seems to be 'CSV file format'.

does anyone know how to fix this?

Microsoft 365 and Office | Excel | For home | MacOS

Locked Question. This question was migrated from the Microsoft Support Community. You can vote on whether it's helpful, but you can't add comments or replies or follow the question.

0 comments No comments

Answer accepted by question author

Anonymous
2015-12-07T19:10:20+00:00

A lot of stuff is "broken" with Excel 2016. Use the smiley face in the upper right of the menu bar to tell Microsoft of the problem. Then hope that it will be addressed in a future update.

Was this answer helpful?

0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Anonymous
    2015-12-07T22:19:10+00:00

    > this script worked with v 11.5.9; doesn't work with v 15.15 <

    Mac Excel version 11.5.9 was part of Office 2004.

    Do you know whether your script worked in Mac Excel 2008 or in Mac Excel 2011?

    The current version of Mac Excel 2016 is 15.16.

    Since Mac Excel 2016 is an evolving product, I suggest you try the most recent update.

    Was this answer helpful?

    0 comments No comments