0

I have an Excel 2008 file. This give a warning message when opened. I would like this message not to be displayed.

tell application "Microsoft Excel"  
    open workbook workbook file name "private:var:root:Desktop:XLS FILES:Copy of 
                                   New Microsoft Excel Worksheet (5).xlsx" read only 1
end tell

With the above script the Excel file is opened but the Excel warning still appears:

SO14994693 question example

Martijn Pieters
  • 1,048,767
  • 296
  • 4,058
  • 3,343
user1705318
  • 77
  • 1
  • 13

1 Answers1

0

Try:

tell application "Microsoft Excel"
    open workbook workbook file name "private:var:root:Desktop:XLS FILES:Copy of New Microsoft Excel Worksheet (5).xlsx" with ignore read only recommended
end tell
adayzdone
  • 11,120
  • 2
  • 20
  • 37