Error using getappdata when Import excel with multiple sheets

1 visualización (últimos 30 días)
Dinouk Goonewardena
Dinouk Goonewardena el 6 de Jul. de 2020
Comentada: Dinouk Goonewardena el 10 de Jul. de 2020
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');

Respuestas (1)

Jyotsna Talluri
Jyotsna Talluri el 9 de Jul. de 2020
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 comentario
Dinouk Goonewardena
Dinouk Goonewardena el 10 de Jul. de 2020
for some reason it does not reconogize the handles from PB_sheet....any idea to fix it?

Iniciar sesión para comentar.

Categorías

Más información sobre Data Import from MATLAB en Help Center y File Exchange.

Productos


Versión

R2016b

Community Treasure Hunt

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

Start Hunting!

Translated by