Undefined function or variable 'Sheets'.

조회 수: 9 (최근 30일)
Adriano
Adriano 2017년 5월 9일
댓글: Nuttaphon Magteppong 2024년 3월 6일
Hello! I'm using this code to get formulas from excel sheet:
excel = actxserver('Excel.Application');
excel.DisplayAlerts = false;
ibsex = excel.Workbooks.Open(filename);
pause(5)
ibssheet = ibsex.Sheets.Item('DATA');
line = strcat('B',num2str(today_row+1),':FP',num2str(today_row+1));
formulas = ibssheet.Range(line).Formula;
ibsex.Close
pause(5)
excel.Quit
pause(5)
the problem is that i recive the error "Undefined function or variable 'Sheets'" when Matlab is executing the line:
ibssheet = ibsex.Sheets.Item('DATA');
How Can I fix the problem? many thanks!
  댓글 수: 7
Adriano
Adriano 2018년 2월 20일
Excel doesn't open any pop up but the problem persist.
Nuttaphon Magteppong
Nuttaphon Magteppong 2024년 3월 6일
I have found this problem. Do you have the solution

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Data Import from MATLAB에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by