private void button2_Click(object sender, EventArgs e) { xlapp = new Excel.Application(); xlwb = xlapp.Workbooks.Open("C:\\Users\\Vijay\\Documents\\File1.xlsm"); xlws = xlwb.Worksheets["Sheet1"]; foreach (Excel.OLEObject OE1 in xlws.OLEObjects()) { MessageBox.Show(Convert.ToString(OE1.Name)); } xlwb.Close(); xlapp.Quit(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)