I need to select a sheet other than active sheet in excel workbook
The excel workbook is opened from a web application and I am using below code to access the excel.
xl = ActiveXComponent.connectToActiveInstance("Excel.Application");
xl.setProperty("Visible", true);
comExcel = xl.getObject();
sheet = Dispatch.get(comExcel, "ActiveSheet").toDispatch();
How can we select another sheet using JACOB
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I need to select a sheet other than active sheet in excel workbook
The excel workbook is opened from a web application and I am using below code to access the excel.
xl = ActiveXComponent.connectToActiveInstance("Excel.Application");
xl.setProperty("Visible", true);
comExcel = xl.getObject();
sheet = Dispatch.get(comExcel, "ActiveSheet").toDispatch();
How can we select another sheet using JACOB