public bool AddComent(object coment, int row, int column)
  {
    try
     {
       Excel.Range range = myExcel.get_Range(myExcel.Cells[row, column], myExcel.Cells[row, column]);

      if (range .Comment != null) 
           { 
               range .Comment.Delete(); 
           }
       range.AddComment(coment);
       return true;
     }
   catch
      {
       return false;
      }
   }

 

相关文章:

  • 2021-11-29
  • 2022-12-23
  • 2021-11-29
  • 2022-02-14
  • 2022-12-23
  • 2022-12-23
  • 2022-01-01
  • 2022-12-23
猜你喜欢
  • 2021-06-04
  • 2022-12-23
  • 2021-06-26
  • 2021-11-29
  • 2021-12-19
  • 2021-11-29
相关资源
相似解决方案