公司同事問我要如何快速刪除工作表所有註解,其實蠻簡單的,請看以下說明:
- 按 F5 鍵,點選特殊(S)..
- 在特殊目標對話方塊中選取註解後按確定按鈕,此時會全部選取有註解的儲存格
- 如果你想偷懶,也可以直接按 Ctrl+Shift+o 鍵(英文小寫的O),效果同步驟1~2(PS:這就是傳說中的秘笈)
- 接著按 Shift+F10 鍵調用快顯方塊,然後按刪除註解(M),OK 註解都刪除了
當然如果你會寫VBA程式碼,只要短短幾行就能解決了
- Excel 2007
Sub Del_Comments_From_Sheet()
' Remove Comments from Excel 2007 Workbook
ActiveWorkbook.RemoveDocumentInformation (xlRDIComments)
End Sub
- Excel 2003 以下
Sub Del_Comments_From_Sheet()
' Remove Comments from Excel 2003 Workbook
Dim wks As Worksheet
Dim cmnt As Comment
For Each wks In ActiveWorkbook.Sheets
For Each cmnt In wks.Comments
cmnt.Delete
Next cmnt
Next
End Sub
Popularity: 35%
Join the forum discussion on this post

分享個人Excel VBA 學習經驗,架站心得, 日常生活記事等...











Proudly powered by
Why don't you make one?