How to hide sheet of excel file with matlab?
Ältere Kommentare anzeigen
Hi,
I want to hide some sheets of my excel file through matlab. Kindly help me out.
Any suggestion is appreciated.
Thank you.
3 Kommentare
Ganesh Gaonkar
am 19 Feb. 2015
Hi Suraj,
Can you explain little bit more about your requirement? What did you mean when you said that you want to hide the Excel sheet? did you mean that you have multiple sheets in Excel file and you want to change the active sheet to something else ? or you want to encrypt the file itself so that others cannot view them? Please explain your complete use case.
Thanks,
Ganesh
Suraj Srivastava
am 19 Feb. 2015
Olaf Müller
am 5 Jun. 2018
Hi Suraj,
hope my comment does not come too late ;-). Please try the approach as used for the example below:
Excel = actxserver('Excel.Application'); WB = invoke(Excel.Workbooks,'open', theFileName); WB.Worksheets.Item(1).Visible = 'xlSheetHidden'; WB.Worksheets.Item(1).Visible = 'xlSheetVisible';
Regards Olaf
Antworten (0)
Kategorien
Mehr zu Data Import from MATLAB finden Sie in Hilfe-Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!