Hide excel sheet form resulted Excel file
    4 ビュー (過去 30 日間)
  
       古いコメントを表示
    
Hello 
I have created 3 sheets in same excel. I want to Hide Sheet number 2.
    excelFile3 = strcat('SummaryResult','.xlsx');
    excelName3 = fullfile(selPath,excelFile3);
    Excel = actxserver('Excel.Application');
    Workbooks = Excel.Workbooks;
    Workbook = Workbooks.Open(excelName3);
    Sheets = Excel.ActiveWorkBook.Sheets;
    Sheet = get(Sheets,'Item',1);
    Sheet.Activate; 
......
Script to modify 
....
    Sheet = get(Sheets,'Item',2);
    Sheet.Activate; 
......
Script to modify sheet formating
....
    Sheet = get(Sheets,'Item',3);
    Sheet.Activate; 
......
Script to modify sheet formating
....
    Workbook.Save;
    Excel.Quit;
    Excel.delete;
Thank You
0 件のコメント
回答 (1 件)
参考
カテゴリ
				Help Center および File Exchange で Spreadsheets についてさらに検索
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!

