- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
回復 5# dafa
勾選 只顯示註解指標 須滑鼠移動到儲存格位置上 註解才會出現
- Option Explicit
- Sub Ex() '用NoteText 直接 增加儲存格註解
- With [A1]
- .NoteText " " '儲存格註解加入 一個 空白字元
- With .Comment.Shape
- .Fill.UserPicture "D:\EX2.GIF" '指定背景圖片
- .Line.ForeColor.SchemeColor = 53
- .Line.Weight = 2
- .AutoShapeType = msoShapeRoundedRectangle '指定註解物件的圖案類型
- End With
- End With
- End Sub
- Sub Ex1() '調整每一個註解
- Dim C As Comment
- For Each C In ActiveSheet.Comments
- With C.Shape
- .Fill.UserPicture "D:\EX1.GIF" '指定背景圖片
- .Line.ForeColor.SchemeColor = 53
- .Line.Weight = 2
- .Height = 100
- .Width = 100
- End With
- Next
- End Sub
複製代碼 |
|