private void removeEmptyCols(Excel.Range deleteCols)
{
Excel._Application oXL;
Excel._Workbook oWB = oXL.ActiveWorkbook;
Excel._Worksheet oWS = oWB.ActiveSheet;
Excel.Range oRng;
if (deleteCols.Areas.Count < 1)
return;
for (int cCount = 1; cCount <10; cCount++)
{
if (oWS.Columns.Value2 = "")
{
oWS.Columns.Delete;
}
}
}
|