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);

你可能感兴趣的:(Excel)