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!

