필터 지우기
필터 지우기

Can a popup-menu on GUI get an excel file sheet name to use as string?

조회 수: 1 (최근 30일)
Is there a way to make a popup-menu read an excel file an get all the sheet names of this file and use as string? I want to be able to add sheets in the excel file and when i open my GUI, it automatically add the strings in this popup-menu! Please, give me some ideia, i dont know how to start. Thanks!

채택된 답변

Tom
Tom 2012년 9월 26일
[~,Sheets]=xlsfinfo(FileName)
set(PopUpHandle,'String',Sheets)
  댓글 수: 2
Samuel
Samuel 2012년 9월 26일
Thanks man, it worked as i wanted! Now, how can i add a new option in the 'case' funtion of the popupmenu for the new strings i added?

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

추가 답변 (0개)

카테고리

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