hide Excel tab from Javascript code
问题 How can I hide an Excel tab programmatically through Javascript. ExcelSheetName.Visible=False doesn't seem to work. I've googled a lot but yet not received the right solution. How to do that ? 回答1: To hide an Excel sheet, set the Visible property of the corresponding Worksheet object to 0 or false . For example, if you have an Excel file with two sheets named Sheet1 and Sheet2 , the following code will open this file with the Sheet1 hidden: var objExcel = new ActiveXObject("Excel.Application"