1. 程式人生 > >獲取指定單元格註釋的函數

獲取指定單元格註釋的函數

note cno tex volatil volatile end cti 代碼 ola

有人在群裏問如何獲取Excel單元格的註釋,就給他寫了下面的代碼。

1 Function FuncNote(strCell As Range)
2     Application.Volatile
3     FuncNote = strCell.Comment.Text
4 End Function

獲取指定單元格註釋的函數