//Referencing Microsoft.Office.Interop.Excel.Application xlApp = new Microsoft.Office.Interop.Excel.Application(); Microsoft.Office.Interop.Excel.WorksheetFunction xlWsf; //declaring a range xlRangeDB = sheet.get_Range("A1", "A1000"); //declaring a double variable double numVal = 0; //using subtoal function but throws error!!! numVal = xlWsf.Subtotal(3,xlRangeDB);
Microsoft.Office.Interop.Excel.WorksheetFunction xlWsf = xlApp.WorksheetFunction;
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)