Error using getappdata when Import excel with multiple sheets
4 次查看(过去 30 天)
显示 更早的评论
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');
0 个评论
回答(1 个)
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');
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Data Import from MATLAB 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!