how to get range of inactive sheets in excel in C# -


in microsoft.office.interop.excel.worksheet, want range of inactive sheet, there way create new object of inactive sheet? can range of active sheet using excel.application.activesheet. thanks

here's simple approach :

var wb = excel.application.activeworkbook; list<worksheet> sheets = new list<worksheet(); foreach(var sheet in wb.sheets) {    if(sheet != excel.application.activesheet)    {         sheets.add(sheet);    } } 

Comments

Popular posts from this blog

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -