string path = @"C:\Test.xls"; Workbook theWorkbook; Worksheet theWorksheet; Range readRange; Microsoft.Office.Interop.Excel.Application app = new Microsoft.Office.Interop.Excel.Application(); theWorkbook = app.Workbooks.Open(path); Sheets theSheets = (Sheets)theWorkbook.Worksheets; theWorksheet = (Worksheet)theWorkbook.Worksheets.get_Item("Sheet1"); readRange = theWorksheet.get_Range("B1"); MessageBox.Show(Convert.ToString(readRange.Value)); //theWorkbook.Save(); app.Workbooks.Close();
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)