필터 지우기
필터 지우기

MATLAB R2019b Opening Excel file, error "This workbook contains links to ... unsafe ..." (want to open readonly).

조회 수: 5 (최근 30일)
SRC_file = xlApp.Workbooks.Open(SRC_dir_name) % also tried (SRC_dir_name,readOnly) or ...'readOnly') unsuccessfully.
Full error message: "This workbook contains links to one or more external sources that could be unsafe. If you trust the links, update them to get the latest data. Otherwise, you can keep working with the data you have."
  댓글 수: 1
Bruce Ferguson
Bruce Ferguson 2022년 10월 26일
Using a MATLAB script I want to open and readonly many Excel files. When each is opened, I get the "external links" error message above, at which I must select the "keep working with the data you have" option manually. I want to suppress this message. The file is not open before. One solution might be able to edit all the Excel files using Excel ahead of time to turn this off (write a macro?) but would rather do something in MATLAB like: "Excel.Application.Workbooks.Open(filename, 'readonly')", but that doesn't work.

댓글을 달려면 로그인하십시오.

답변 (1개)

Animesh Gupta
Animesh Gupta 2022년 2월 3일
Hello Bruce,
It is my understanding that you are unable to load an excel file in your workbook due to the error message. I found that this error is related to the file being used.

카테고리

Help CenterFile Exchange에서 Spreadsheets에 대해 자세히 알아보기

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by