- 帖子
- 472
- 主題
- 5
- 精華
- 0
- 積分
- 485
- 點名
- 0
- 作業系統
- Windows
- 軟體版本
- MS Office
- 閱讀權限
- 100
- 性別
- 男
- 來自
- 香港
- 註冊時間
- 2010-7-4
- 最後登錄
- 2014-12-28

|
2#
發表於 2010-7-16 13:51
| 只看該作者
請問有沒有方法可以搜尋取得某欄位的注解內容?
謝謝
calvin.ho 發表於 2010-7-16 13:26 
這個要寫代碼了, 其中一個原因是注解上的可以是圖片.
以下代碼, getcomment(a1) 回傳a1 裡的comment
Public Function getComment(rng As Variant) As String
Dim s As String
s = ""
For Each r In rng
If Not (r.Comment Is Nothing) Then
s = s & r.Comment.Text
End If
Next
getComment = s
End Function |
|