C# 添加Excel 批注、如何在Excel的单元格里面增加批注

 

           Microsoft.Office.Interop.Excel.Range oCell = range[rowIndex, columnIndex] as Microsoft.Office.Interop.Excel.Range;

           //如何在Excel的单元格里面增加批注

           if (oCell.Comment != null)
           {
               oCell.Comment.Delete();
           }
           oCell.AddComment(comment);

posted @ 2009-09-21 13:58  汉城  阅读(1778)  评论(0编辑  收藏  举报