Ejemplo n.º 1
0
 public void DeleteColumn(string column)
 {
     ExcelApp.Range range = (ExcelApp.Range)excelapp.get_Range(column, Missing.Value);
     range.EntireColumn.Delete(Missing.Value);
     System.Runtime.InteropServices.Marshal.ReleaseComObject(range);
 }
Ejemplo n.º 2
0
 public static void RangeSelect(string cellString)         // select cell
 {
     ReleaseObject(XlRange);
     XlRange = (Microsoft.Office.Interop.Excel.Range)XlApp.get_Range(cellString, Type.Missing);
     XlRange.Select();
 }