Error using getappdata when Import excel with multiple sheets

조회 수: 1 (최근 30일)
Dinouk Goonewardena
Dinouk Goonewardena 2020년 7월 6일
댓글: Dinouk Goonewardena 2020년 7월 10일
I keep getting an error which I cant seem to solve, all the code is the files, Import_PB imports the excel file.
The error=>
Error using getappdata
Value must be a handle.
Error in Import_PB (line 44)
handles.SheetsData =getappdata(h,'SheetsData');

답변 (1개)

Jyotsna Talluri
Jyotsna Talluri 2020년 7월 9일
The error occurs when the handle 'h' you are refering to is not a valid handle of a handle graphics object .
handles.SheetsData = getappdata(h,'SheetsData');
Check if you have specified 'Tag' property correctly as findobj is not returning a valid handle
h = findobj('Tag','GUI_PB');
  댓글 수: 1
Dinouk Goonewardena
Dinouk Goonewardena 2020년 7월 10일
for some reason it does not reconogize the handles from PB_sheet....any idea to fix it?

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

카테고리

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

제품


릴리스

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by